MATLAB: How to write code processing grades

grade processinghomework

  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.

Best Answer

_I need to assign Grade to the letter grades so I can print out both the average and the letter grade._
A1=70. %an example adapt to your needs
A2='C'
formatSpec = 'Average is %d and grade is %s';
fprintf(formatSpec,A1,A2)
Related Question