Quiz 7 - Input exam Display “Enter quiz average “ Input...

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

View Full Document Right Arrow Icon
Quiz 7 Wanda Vasquez Declare String studentName Declare Real lab1 Declare Real lab2 Declare Real lab3 Declare real midterm Declare real final Declare real average Declare character grade InputStudentData(studentName, examAverage, labAverage) CalculateGrade DisplayResult(examAverage , quizAverage, labAverage, finalAverage, finalGrade) End Main InputStudentData (name, exam, quiz, lab) Display “Enter student name: “ Input name Display “Enter exam average: “
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the 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

This note was uploaded on 06/18/2011 for the course CIS 115 taught by Professor Ramiro during the Spring '11 term at DeVry Addison.

Page1 / 2

Quiz 7 - Input exam Display “Enter quiz average “ Input...

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

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