practice: add questions on profit and loss

Aperta Adatta ai principianti
#31 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
json
Ambito
content

Direzione di ricerca

Inizia leggendo le domande quantitative esistenti in shared/practice/questions.json e segui la loro struttura. Aggiungi tre domande originali su profitti e perdite, con nuovi ID in minuscolo, quattro opzioni distinte, un answerId valido, una spiegazione svolta e l'argomento quantitativo con difficoltà facile o media. Esegui npm ci e npm test; il lavoro è completato quando i controlli della banca di domande vengono superati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement good first issue

What to add

Add 3 original multiple-choice questions on profit and loss to the quantitative topic in shared/practice/questions.json.

The quantitative topic has 6 questions and none of them cover profit and loss yet. Some ideas (write your own wording and numbers):

  • find the selling price from the cost price and a profit percentage
  • find the profit or loss percentage from the cost price and selling price
  • find the cost price when the selling price and profit percentage are known

Look at the existing quantitative questions in the file first and follow the same shape.

Requirements

  • The questions must be your own. Do not copy from books, websites, coaching material, or past papers.
  • Each question has exactly 4 options (a to d), one answerId, and an explanation that shows the reasoning or working, not only the answer.
  • Use "topicId": "quantitative" and "difficulty": "easy" or "medium". A mix of both is welcome.
  • Give each question a new lowercase ID, for example quant-profit-percent. Do not change existing IDs.
  • Indian context is welcome (Rs, km, common names).

Check your change

npm ci
npm test

npm test checks the question bank (unique IDs, four distinct options, a valid answer). If you have the .NET SDK, also run dotnet test backend/ProCoderJi.slnx --configuration Release. If you don't, CI runs the backend tests on your pull request.

Before you start

Leave a comment here when you start so others can pick a different issue. New to open source? Start with CONTRIBUTING.md. Questions are welcome in the comments.

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
8h 58m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di procoderji-com/procoderji

Tutte le issue di procoderji-com/procoderji

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.