Jeffrey Muno1

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

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

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 =

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

View Full Document
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
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

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

View Full Document
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
C = 2 D = 1 F = 0 enter your course nameMA1375 course = 4 enter letter gradeA

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.