C. As the lead system engineer at AIT, you have been given raw data for hundred (100) students who sat for an entrance exam and you have been asked to write the pseudocode to summarize the results. For each student grade, it is written a “P” for pass and “F” for fail.
6
Use indentation and line numbers to highlight the flow of the program:
Your pseudocode should address the following:
i. Prompt the user to enter each result one after the other
ii. Provide a count of the results of each type
iii. Summarize the results indicating the number that passed or failed
1. Start
2. Declare variable passCounter=0
3. Declare variable failedCounter=0
4. Declare variable studentGrade=0
5. for student=1 to 100 step 1
6. get studentGrade
7. if studentGrade>60 then
8. Print "P"
9. passCounter=passCounter+1
10. else
11. Print "F"
12. failedCounter=failedCounter+1
13. Print "The number of the students passed: " + passCounter
14. Print "The number of the students failed: " + failedCounter
15. Stop
Comments
Leave a comment