This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Input exam Display “Enter quiz average: “ Input quiz Display “Enter lab average: “ Input lab CalculateGrade(lab1, quiz, lab, score, grade) Set score = ( lab1 + lab2 + lab3 + midterm + final)/5 If (score >= 90) then grade = “A” else if (score >= 80) then grade = “B” else if (score >= 70) then grade = “C” else if (score >= 60) then grade = “D” Else Grade = “F”...
View Full Document
- Spring '11
- Harshad number, Input/output, Declare Real, Wanda Vasquez, Declare real average