Answer to Question #145527 in Python for Nhlanhla

Question #145527
Read the following scenario, then answer the question that follows:

“To help students determine whether they qualify for a supplementary exam, students can enter their final module mark and exam mark on a webpage. If the student obtained more than 30% for their exam mark and a final mark of less than 50%, the student will be informed that he/she qualifies for a supplementary exam.”

Question:
Write the pseudocode that will prompt a user for the required information and accurately represent the logic contained in the scenario provided at the beginning of the question.
1
Expert's answer
2020-11-24T23:03:25-0500


Pseudocode:


Print and ask the user for the exam mark

examMark = user input for exam mark

Print and ask the user for the final module mark

finalMark = user input for final module mark

if examMark > 30 and finalMark < 50 then print qualifies for a supplementary exam

else print NOT qualifies for a supplementary exam


Python:


examMark = float(input("Please Enter the exam mark: "))
finalMark = float(input("Please Enter the final module mark : "))

if examMark > 30.0 and finalMark < 50.0:
    print("You are qualifies for a supplementary exam.")
else:
    print("You are NOT qualifies for a supplementary exam.")




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS