Following code is meant to be an interactive grade calculation script that converts from a percentage into a letter grade :
90 and above is A+,
80-90 is A,
60-80 is A-,
and everything below is fail.
Write the program to display grade of a user ?
Answers
Answered by
0
Answer:
please mark as brainliest answer please
Answered by
0
Interactive grade calculation script
Explanation:
We have to input the percentage
And the we have to compare and find out in which range the percentage lies between
Pseudo code
If(per>90):
A+ grade
Elif(80<per<90):
A grade
Elif(60<per<80):
A- grade
PYTHON PROGRAM:
Percent=float(input(“enter percentage”))
If(Percent>90):
print(“grade is A+”)
elif(Percent>80 and Percent<90):
print(“grade is A”)
elif(Percent>60 and Percent<80):
print(“grade is A-“)
OUTPUT:
Enter percentage 93
Grade is A+
Enter percentage 61
Grade is A-
Enter percentage 81
Grade is A
Similar questions
Science,
4 months ago
Computer Science,
4 months ago
Social Sciences,
4 months ago
Physics,
11 months ago
Math,
11 months ago