practice: add questions on profit and loss

オープン 初心者向け
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json
領域
content

調査の方向性

まず shared/practice/questions.json にある既存の定量問題を読み、その形式に沿ってください。利益と損失に関する独自の問題を3問追加してください。新しい小文字のID、異なる4つの選択肢、有効な 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分
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

procoderji-com/procoderji のほかの issue

procoderji-com/procoderji の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。