practice: add questions on profit and loss

未關閉 適合新手
#31 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
82/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
json
領域
content

研究方向

先閱讀 shared/practice/questions.json 中現有的定量問題,並遵循其結構。新增三道原創的盈虧問題,使用新的小寫 ID、四個不同的選項、有效的 answerId、詳細的解題說明,並將主題設為定量、難度設為簡單或中等。執行 npm ci 和 npm test;題庫檢查通過後即完成。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
1
分支
1
平均合併
8 小時 58 分鐘
30 天內合併 PR
37

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

procoderji-com/procoderji 的其他 Issue

查看 procoderji-com/procoderji 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。