Machine Problem

Write a program that will ask the student to input the Prelim, Midterm, and Final grades and then, the program will compute the grade and display the result on the screen. The percentage on every grading period are the following: For Prelim, it will be 20%, Midterm will be 30%, and Finals will be 50%.

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.

Program Listing

# Jake Rodriguez Pomperada, MAED-IT, MIT
# May 24, 2021   Monday
# www.jakerpomperada.com  www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental

print()
print("\tAverage Grade Solver in Python");
print()
subject = input('\tWhat is the subject? ');
prelim = float(input('\tGive Prelim Grade : '));
midterm = float(input('\tGive Midterm Grade : '));
final = float(input('\tGive Final Grade : '));
solve_grade= (prelim * 0.20) + (midterm * 0.30) + (final * 0.50);
print();
print("\t===== DISPLAY RESULTS =====");
print();
print("\tThe subject is" ,subject,'.');
print();
print("\tThe subject grade is {:2.2f}".format(solve_grade));
print();
print("\tEND OF PROGRAM");

Leave a Reply

Your email address will not be published.