Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions