%purpose is showing grades of 102 students and assign a letter grades
%the grades will be random numbers between 0 to 100
clc;clear;
student_numbers=20200001:20200102;
exam1=input('enter a value:');
exam2=input('enter a value:');
lab=input('enter a value:');
final_exam=input('enter a value:');
if final_exam>0 && final_exam<35
fprintf('your grade is FF');
elseif lab>0 && lab<10
fprintf('your grade is FF');
I want to develop a computer program (BY MATLAB) which would calculate the total grade for each student. The weight of the each item for final grade calculation is; exam 1 25 %, exam 2 20%, lab 15% and final exam 40%. The final grades should be rounded to integers. After this, your program should specify the letter grade for each student. The rules for letter grade distribution are as follows:
- Anybody whose final exam grade is less than 35 will automatically receive FF.
- Anybody whose lab grade less than 10 will also automatically receive FF.
- For the rest of the class excluding the people who failed at the first two steps, you would calculate the arithmetic average (mean) and standard deviation of the grades.
- You will set CC grade to the mean grade you calculated in the previous step. Then you would add half the standard deviation to mean to set the starting point for the CB grade. Adding half the standard deviation once more would yield the starting point for the BB grade, etc… Following this procedure you would also calculate the starting points for the BA and AA grades.
- For the grades lower than CC (DC, DD, FD and FF) you would successively subtract half of the standard deviation from the mean grade.
what should ı add up or change the code that ı write to make the program run. ı know its still on the first steps but ı get stuck and couldnt solve how to progress… thank you in advance…