Jeffrey Muno1 - grade = 4 hp = 16 total_cr = 4 total_hp =...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Jeffrey Munoz November 25,2007 Project 11 Matlab Program to Calcualted GPA n=input('number_of_course'); total_cr=0; total_hp=0; MA1375=4; EET1202=2; SC1101=4; ENG1101=3; A=4 B=3 C=2 D=1 F=0 for x=1:n course=input('enter your course name') grade=input('enter letter grade') hp=course*grade total_cr=total_cr+course total_hp=total_hp+hp end gpa=total_hp/total_cr Calculate GPA in Following Cases: Case 1: number_of_course4 A = 4 B = 3 C =
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 D = 1 F = 0 enter your course nameMA1375 course = 4 enter letter gradeA grade = 4 hp = 16 total_cr = 4 total_hp = 16 enter your course nameSC1101 course = 4 enter letter gradeA
Background image of page 2
grade = 4 hp = 16 total_cr = 8 total_hp = 32 enter your course nameEET1202 course = 2 enter letter gradeA grade = 4 hp = 8 total_cr = 10 total_hp = 40
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
enter your course nameENG1101 course = 3 enter letter gradeA grade = 4 hp = 12 total_cr = 13 total_hp = 52 gpa = 4 Case 2: number_of_course4 A = 4 B = 3
Background image of page 4
C = 2 D = 1 F = 0 enter your course nameMA1375 course = 4 enter letter gradeA
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: grade = 4 hp = 16 total_cr = 4 total_hp = 16 enter your course nameEET1202 course = 2 enter letter gradeA grade = 4 hp = 8 total_cr = 6 total_hp = 24 enter your course nameSC1101 course = 4 enter letter gradeB grade = 3 hp = 12 total_cr = 10 total_hp = 36 enter your course nameENG1101 course = 3 enter letter gradeB grade = 3 hp = 9 total_cr = 13 total_hp = 45 gpa = 3.4615 Explanation: In Section 1of the program, I had to label the input the total number of courses, Total_cr, and Total_hp. In section 2, in labeled the courses taken; MA1375, EET1202, SC1101, and ENG1101. In section 3, I input the letter value of each grade; A=4, B=3, C=2,D=1, F=0. In section 4, I enter the commands to calculate the honor points and credits. In Section 5, I enter the calculation to calculate the GPA....
View Full Document

Page1 / 7

Jeffrey Muno1 - grade = 4 hp = 16 total_cr = 4 total_hp =...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online