Answer to Question #323233 in Python for asdasd

Question #323233

• Using Php Script write a program that will compute the students average



• The user will input the following:



 Name



 Math



 Science



 English



• If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.”


1
Expert's answer
2022-04-04T16:12:10-0400
name = input('Enter name: ')
math = int(input('Enter math: '))
science = int(input('Enter science: '))
english = int(input('Enter english: '))

average = (math + science + english) / 3

if average < 75:
    print(f'\nYour average: {average}'f'\nYou failed the semester, {name}')
else:
    print(f'\nYour average: {average}'f'\nCongratulations, {name} You passed the semester')

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