Write a program that calculates the average marks of three subjects of a student, entered by the user through keyboard and store them in three different float variables having names marks_subject1, marks_subject2, marks_subject3
The formula to calculate the average is:
average = (marks_subject1 + marks_subject2 + marks_subject3) / 3
Your program should also display the average calculated.
Now on the basis of the calculated average, it should be decided that the student is Excellent, Good or Fail using conditional statements.
1. Excellent if average is greater then or equal to 70.
2. Good if average is less then 70 and greater then or equal to 50.
3. Fail if average is less then 50.
Hint: if-else structure.