CIS115- Week 4 Lab

Begin

Display “Please enter First and Last Name:”

Display “Please enter student’s score:”

Get score

If score<0 and 1000

                thenerror_message= “Invalid entry please try again”

Display error_message

End if

If score=0 and <=1000

                then message= “Good score calculating letter grade”

Display message

 

Calculate percent=score/10

If percent=90

                thenletter_grade=A

Else

If percent=80 and <90

                thenletter_grade=B

Else

If percent=70 and <80

                thenletter_grade=C

Else

If percent=60 and <70

                thenletter_grade=D

Else

If percent<=59

                Then letter_grade=F

Endif

 

Display “Your percent is:”

Display “Your Grade is:”
Powered by