Percentage to Letter Grade

4 ビュー (過去 30 日間)
Anne Nguyen
Anne Nguyen 2019 年 10 月 27 日
回答済み: Walter Roberson 2019 年 10 月 27 日
I must create a function that outputs a letter grade based on the combined percentage a student scored on an multiple choice quiz and an essay. The multiple choice part of the quiz is worth 60% of the total grade and the essay is worth 40% of the total grade. How do I write code that incorporates the quiz being 60% worth of the total grade, and the essay being 40% of the total grade? Any help would be appreciated, thank you!

採用された回答

Walter Roberson
Walter Roberson 2019 年 10 月 27 日
final_mark = mark_for_first_thing * weight_of_first_thing / 100 + mark_for_second_thing * weight_of_second_thing / 100;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTransportation Engineering についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by