Answer to Question #232820 in Python for Isabel

Question #232820

Create a program in python that will accept a name of a student and subject final grades. Number of subjects will be 5, name of subjects are English, Math, Filipino, MAPEH and Science.


The program must print the name of the student, the results per subject and the average of the 5 subjects. The final grades are all integers but the average is not.


Sample Run:

Name of Student: Ramoncito Dealca

English Exam Result: 89

Math Exam Result: 97

Filipino Exam Result: 88

Science Exam Result: 98

MAPEH Exam Result: 86

Student Name Ramoncito Dealca

Score in English: 89

Score in Math: 97

Score in Filipino: 88

Score in Science: 98

Score in MAPEH: 86

Average: 91.60


1
Expert's answer
2021-09-03T03:51:40-0400
lst = [input('Name of Student: '), int(input('English Exam Result: ')), int(input('Math Exam Result: ')),
       int(input('Filipino Exam Result: ')), int(input('Science Exam Result: ')), int(input('MAPEH Exam Result: '))]

print('Student Name', lst[0])
print('Score in English:', lst[1])
print('Score in Math:', lst[2])
print('Score in Filipino:', lst[3])
print('Score in Science:', lst[4])
print('Score in MAPEH:', lst[5])
print('Average:', sum(lst[1:]) / 5)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS