Question: It accepts a student's numerical grade A student's letter grade is calculated according to the following table. Create a new file, YourName _ SID _

It accepts a student's numerical grade A student's letter grade is calculated according to the following table.
Create a new file, YourName_SID_Lab4c.py, and perform the following tasks:
It accepts a student's numerical grade (in floating point number), converts and assigns the
numerical grade to an equivalent letter grade using nest-if (and one else) structure, and
displays the letter grade accordingly.
Also, you should print an error message if the input numeric grade is out of the normal range,
i.e.0 or >100.
(Remark: Before submission, please try different inputs (i.e., grades) in your testing (see sample
outputs below).
Sample program outputs:
CCIT4020 Laboratory 4: Section 3
Please enter the numerical grade (out of 100): 76
The Letter Grade is B+.
CCIT4020 Laboratory 4: Section 3
Please enter the numerical grade (out of 100): 91.68
The Letter Grade is A+.
CCIT4020 Laboratory 4: Section 3
Please enter the numerical grade (out of 100): -278
Error! Invalid input...
(
in floating point number
)
,
converts and assigns the
numerical grade to an equivalent letter grade using nest
-
if
(
and one else
)
structure, and
displays the letter grade accordingly.
Also, you should print an error message if the input numeric grade is out of the normal range,
i
.
e
.
0
or
>
1
0
0
.
(
Remark: Before submission, please try different inputs
(
i
.
e
.
,
grades
)
in your testing
(
see sample
outputs below
)
.
It accepts a student's numerical grade A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!