【解決方法】ユーザーに次のメニューを表示するメニュー駆動型の C++ プログラムを作成します。

プログラミングQA


Main Menu
Enne Student information
Calculate me average
Calculate the Y function for a linear equation
Exit.
Main Function:
Write a menu driven program that repeatedly displays the menu to the user (call displayMenu) and prompt the user to enter his/her choice. The menu should work as
Choice #1: print your information (Name and ID) to the screen.
Choice #2: Prompt the user to enter five value and calculate the average (call
Average), and print the result.
• Choice #3: Prompt the user to enter three integers (a,b,x), and calculate the first order linear equation and print the result
Choice #4: Exit.

私が試したこと:

The menu should appear continuously (as infinite loop) to the user until choosing choice.
1. Write a C+4- function to read the choice from the keyboard, and prints student information. 2.5 mark
2. Write a C++ function to read numbers from the keyboard, and prints their average to the
screen for ave numbers 2.5 marks
3. Write C++ function to calculate the Y value ,the numbers sent as function argument 2.5
mark

解決策 1

OGのシェアとして、

私たちは立ち往生している人々を喜んで助けますが、それは私たちがあなたのためにすべてをするためにここにいるという意味ではありません! 私たちがすべての作業を行うことはできません。あなたはこれに対して報酬を受け取っているか、またはそれはあなたの成績の一部であり、私たちがあなたのためにすべてを行うことはまったく公平ではありません.

だから私たちはあなたが仕事をする必要があり、あなたが行き詰まったときにあなたを助けます. それは、あなたが提出できる段階的な解決策を提供するという意味ではありません!
現在の状況と、プロセスの次のステップを説明することから始めます。 次に、その次のステップを機能させるために何を試みたか、またその際に何が起こったかを教えてください。

開始するのに問題がある場合は、これが役立つ場合があります。 問題を解決するためのコードの書き方、初心者向けガイド[^]

そのため、試してみてから直面する特定の問題を試してみてください。

コメント

タイトルとURLをコピーしました