Machine Problem in Python

1. Write a program that computes students average

2. Use a function with 4 parameters (Name, Math, English and Science Grade)

3. Reference the function 3 times with different values

Sample Program Output

John’s grade (Math=?, Science=?, English=?) and the average is ?

Ana’s grade (Math=?, Science=?, English=?) and the average is ?

Frank’s grade (Math=?, Science=?, English=?) and the average is ?

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

def Average(Name,Math,English,Science):
   solve = int(Math+English+Science)/3
   print("{0}'s grade (Math={1}, Science={2},English={3}),and the average is {4}."
         .format(Name,Math,English,Science,round(solve)))

print()
Average("John",85,91,77)
print()
Average("Ana",83,89,93)
print()
Average("Frank",93,76,89)

Leave a Reply

Your email address will not be published.