Question
Write the pseudocode for the scenario below. A teacher has a class of 10 learners who recently wrote a test. The teacher would like to
Write the pseudocode for the scenario below. A teacher has a class of 10 learners who recently wrote a test. The teacher would like to determine the average class mark and the name of the student with the highest mark. Verify that the marks input by the teacher fall in the range 0 to 100. For any mark input that is outside of this range, the user must repeat the process and input the mark until it is within the range. The values below are an example of the names and marks for this scenario and explanation. The teacher will input their own data. Example Data Names string Marks numeric Joe 68 Mpho 56 Kyle 43 Susan 49 Thando 76 Refilwe 80 John 50 Katlego 75 Joyce 63 Sisanda 44 You are required to do the following for the teacher: Display the students name with their corresponding mark and category. o Any learner with a mark equal to or above 75 display Distinction next to their mark. o For those learners with a mark less than 50, display Fail. o All the other students must have the word Pass next to their mark. Display the name of the learner with the highest mark. Calculate and display the average class mark. Comment your pseudocode and use descriptive and appropriate messages/labels for the output. The report must display no java no python no c++ just simply and pseudocode heres what to follow : Declare and initialise variables 3 Input student name 3 Verify that all the marks input are between 0 and 100 (inclusive). If not, then the user must re-enter that mark 6 Determine and display Distinction next to the student whose mark is greater than or equal to 75 3 Determine and display Pass next to the student whose mark is in the range 50 to 74 3 Determine and display Fail next to the student whose mark is less than 50 3 Determine and display the name of the student with highest mark 12 Calculate and display the average class mark 5 Comment
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started