Showing posts with label Grade Solver in Python python jake pomperada if else. Show all posts
Showing posts with label Grade Solver in Python python jake pomperada if else. Show all posts

Thursday, March 4, 2021

Grade Solver in Python

 A simple grade solver that I wrote using Python programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




Program Listing


name = str(input("Enter Name: "))
math = int(input("Enter Math: "))
science = int(input("Enter Science: "))
english = int(input("Enter English: "))

calc = (math + science + english) / 3
print("Average Grade: %.2f" %(calc))

if calc >= 75:
print(f"Congratulations! You passed the semester.")
if math < 75 or science < 75 or english < 75:
print(f"but you need to retake the following subject(s):")
if math < 75:
print(f"Math")
if science < 75:
print(f"Science")
if english < 75:
print(f"English")
else:
print(f"You failed the semester.")