Write a program to accept marks of a student obtained in 5 different subjects (English
Phy., Chem., Biology, Maths.) and find the average. If the average is 80% or more then
he/she is eligible to get “Computer Science otherwise “Biology".
Answers
Answered by
4
Code: [in Python language]
Explanation:
We use the function to obtain the marks using as the datatype, since marks could also be in decimal values and store them in suitable variables. After that's done, we calculate the average and store it in the 'avg' variable. We then pass a conditional statement, which is a statement used to check for a required condition, and if the required condition is satisfied, the succeeding command is passed, which is the required statement.
Similar questions