PdfPrep.com

How should you complete the code?

HOTSPOT

You are designing a decision structure to convert a student’s numeric grade to a letter grade. The program must assign a letter grade as specified in the following table:

For example, if the user enters a 90, the output should be, “Your letter grade is A”. Likewise, if a user enters an 89, the output should be “Your letter grade is B”.

How should you complete the code? To answer, select the appropriate code segments in the answer area.

Answer:

Explanation: https://www.w3resource.com/python/python-if-else-statements.php

Exit mobile version