Assignment question 2

Assignment question 2 - Step 3: Is 61 < X < 80? If...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Let score = X Input Score Start Is 81 < X < 100? X = A Is 61 < X < 80? X = B Is 41 < X < 60? X = C X = D Is 0 < X < 40? 2. 2)  Output the letter grade based on the entered score. The grading scale is as follows:  A : 81 -100 B : 61 – 80 C : 41 – 60 D : 0 – 40 Step 1: Let your score equal X. Step2: Is 81 < X < 100? If no, go to Step 3. If yes, you’re grade is an A, end.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Step 3: Is 61 < X < 80? If no, go to Step 4. If yes, youre grade is a B, end. Step 4: Is 41 < X < 60? If no, go to Step 5. If yes, youre grade is a C, end. Step 5: Is 0 < X < 40? If no, go back to Step 1. If yes, youre grade is a D, end. YES NO YES NO YES NO YES...
View Full Document

This note was uploaded on 04/02/2008 for the course COMP APPS 170 taught by Professor Gayatreeganu during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online