Professional Documents
Culture Documents
PROJECT 2
1.1 OBJECTIVES
The objective the report is to use the knowledge of MATLAB program for engineers to make
a function regarding students’ semester final grades.
-This report also uses the knowledge of MATLAB data structures and file input/output to
read and write data from and to text files.
2.0 FLOW CHART
START
test40 = (((Test1_Q1 +
Test1_Q2)./200).*20)+(((Test2_Q
1 + Test2_Q2 + Test2_Q3 +
Test2_Q4)./100).*20);
assignment30 = (((manual1 +
manual2 + manual3 +
manual4)./40).*20) + (((cad1 +
cad2 + cad3 + cad4)./40).*10);
project30 =
(project_assembly_drawing +
project_part_drawing +
project_modern_tools);
final_marks = test40 +
assignment30 + project30;
overall_average_marks =
(sum(final_marks))/no;
(overall_average_ average_grade = 'A+'
marks >=90)
(overall_average_
average_grade = 'B-'
marks >=60)
(overall_average average_grade = 'C+'
_marks >=55)
(overall_average
average_grade = 'C-'
_marks >=45)
(overall_average
average_grade = 'D+'
_marks >=40)
(overall_average
average_grade = 'D'
_marks >=35)
(overall_average
_marks >=30) average_grade = 'D-'
fprintf RESULTS SUMMARY,
average_grade = 'E Subject Code: SEMM1013,
Semester 1, No of students, The
Overall Average Mark
quiz_average
=((((manual1./10)+(manual2./10)+(manua
l3./10)+(manual4./10)+(cad1./10)+(cad2./
10)+(cad3./10)+(cad4./10))./8)*100);
exam_average =
((((Test1_Q1./100)+(Test1_Q2./100)+(Tes
t2_Q1./30)+(Test2_Q2./16)+(Test2_Q3./19
)+(Test2_Q4./35))./6).*100);
output output2
output output1
END
3.0 RESULT AND DISCUSSION
First , to execute the output , we need to type the command below
3.3 Output 2
Sort by Matrik No
3.4 Graph Grades
3.5 codes
Codes above are formula to calculate the percentage of tests, assignments, projects and final
marks.
Codes above is to calculate Overall average marks and to determine grades for overall
students’ marks