Computer Science, asked by chauhanjaiveer, 3 days ago

Write a program to accept the percentage from the user and display a message according to the following conditions Percentage Message >80 "Good Performance ​

Answers

Answered by jayantimala12184
0

Answer:

primary mathematics classes you have learned about percentage. Just to give a quick recap, below is the formula to calculate percentage.

Percentage formula

Step by step descriptive logic to find percentage and grade.

Input marks of five subjects in some variable say phy, chem, bio, math and comp.

Calculate percentage using formula per = (phy + chem + bio + math + comp) / 5.0;.

Carefully notice I have divided sum with 5.0, instead of 5 to avoid integer division.

On the basis of per find grade of the student.

Check if(per >= 90) then, print "Grade A".

If per is not more than 90, then check remaining conditions mentioned and print grade.

Program to find percentage and grade

Similar questions