Jane wants to become a doctor. If jane obtains an average of 90% for maths in her final exams, she will be admitted to the qualification, however, if she obtains an average of more than 85% but less 90% for maths and an overall average of 90% for all her subjects she will still be able to study medicine but will have to complete a BSc degree first. Write the pseudocode that will accurately reflect the logic contained in the above scenario
Pseudocode
Start
Get average for maths from a user
Get average for all her subjects from a user
if average for maths>=90 then
print message: "Jane will be admitted to the qualification"
else if average for maths>=85 and average for maths<90 then
if overall average for all her subjects>=90 then
print message: "Jane will still be able to study medicine but will have to complete a BSc degree first."
else
print message: "Jane will be NOT admitted to the qualification"
Stop
Comments
Leave a comment