In: Computer Science
Lab 3.4
Write a program that determines a student’s grade. The student will enter a grade and the program will determine if that grade is an A, B, C, D, or E.
The student can only enter number 0-100.
A = 90-100
B = 80-89
C = 70-79
D= 60-69
E = 59 or less
Save the file as Lab3.4 and submit the file.
Use https://repl.it/
THIS LANGUAGE IS PYTHON
Thank you :)
#reading the grade from user
grade=int(input("Enter grade: "))
#checking if it greater than 90
if grade>=90:
print("Grade : A")
#checking if it greater than 80
elif grade>=80:
print("Grade : B")
#checking if it greater than 70
elif grade>=70:
print("Grade : C")
#checking if it greater than 60
elif grade>=60:
print("Grade : D")
else:
print("Grade : E")
Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me