Percentage to Letter Grade
조회 수: 1 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!