Professor James asked you to write a letter grade program for him. The program s
ID: 3673516 • Letter: P
Question
Professor James asked you to write a letter grade program for him. The program should ask for score and display the appropriate letter Grade base on the following grading policy. Use WHILE statement to repeat the program for 5 Students with grade of (90, 72,89,56, 62).
If Grade >= 90 print “A” and “excellent”
Grade >= 80 print “B” and “very Good”
Grade >= 70 print “C” and “Good”
Grade >= 60 print “D” and “passed”
Below 60 is “F”
Submit the following :
1) Algorithem 25
2) Source code 40
3) output 10
Explanation / Answer
Algorithm :
Step 1 : start
Step 2 : read marks or Percentage
Step 3 : if marks >= 90 then grade =A and Excellent, go to step 9
Step 4 : if marks >= 80 and marks <=90 then grade = B and Very good, go to step 9
Step 5 : if marks >=70 and marks <=80 then grade = C and Good, go to step 9
Step 6 : if marks >=60 and marks <=70 then grade = D and Passed, go to step 9
Step 7 : if marks < 60 then grade = failed , go to step 8
Step 8 : display failed
Step 9 : display grade.
Step10 : stop.
Source code:
Output:
smart boy
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.