practice: add questions on profit and loss

Aberta Para iniciantes
#31 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
82/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
json
Domínio
content

Direção de pesquisa

Comece lendo as questões quantitativas existentes em shared/practice/questions.json e siga a estrutura delas. Adicione três questões originais sobre lucro e prejuízo, com novos IDs em letras minúsculas, quatro opções distintas, um answerId válido, uma explicação detalhada e o tópico quantitativo com dificuldade fácil ou média. Execute npm ci e npm test; o trabalho estará concluído quando as verificações do banco de questões forem aprovadas.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
1
Forks
1
Merge médio
8h 58min
PRs com merge (30d)
37

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de procoderji-com/procoderji

Todas as issues de procoderji-com/procoderji

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.