Percentage to Letter Grade
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Anne Nguyen
el 27 de Oct. de 2019
Respondida: Walter Roberson
el 27 de Oct. de 2019
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 comentarios
Respuesta aceptada
Walter Roberson
el 27 de Oct. de 2019
final_mark = mark_for_first_thing * weight_of_first_thing / 100 + mark_for_second_thing * weight_of_second_thing / 100;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!