How do I write code processing grades?
古いコメントを表示
How do I write code that gets scores for 3 exams: Exam1, Exam2, Exam3 as input (via arguments). Prints them (nicely, using fprintf). Finds their average: Avg. Assigns a Grade according to the scale: A if Avg ≥ 90, B for 80 ≤ Avg < 90, and so on, down to F for Avg < 60. Finally, prints the Avg and Grade.
3 件のコメント
John D'Errico
2018 年 10 月 30 日
What have you tried? If nothing, then why not? After all, it is doing your homework that you will learn. Start writing. Take a shot at it. If you have a problem, then show what you did, and ask for help in how to fix it. Explain what you perceive to be where you are stuck.
Corey Butler
2018 年 10 月 30 日
Corey Butler
2018 年 10 月 30 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!