Write a program in Python to accept
Name of the student
Marks of the student in the following 5 subjects (each out of 100) :
English
Hindi
Mathematics
Science
Social Studies
Find and display the following with appropriate messages:
“ Hello! NAME OF THE STUDENT”
Total marks obtained
Percentage
Average Marks obtained
PLEASE ANSWER THIS QUESTION....
Answers
Answered by
51
n = input("Enter your name: ")
eng = float(input("Enter your English marks: "))
hin = float(input("Enter your Hindi marks: "))
math = float(input("Enter your Mathematics marks: "))
sci = float(input("Enter your Science marks: "))
sst = float(input("Enter your Social Science marks: "))
total = eng + hin + math + sci + sst
per = (total/500)*100
avg = (total/5)
print()
print("Hello", n + '!')
print("Total marks obtained: ", total)
print("Percentage secured: ", per)
print("Average marks obtained: ", avg)
Similar questions