Computer Science, asked by bhumikhadka1988, 2 months ago

a) Write a program to enter marks of 5 subjects and find total and percentage using
Input, Let and print statements.
find the sum of any five numbers using LET and PRINT by using Q basic ​

Answers

Answered by dhanushreehs382007
2

Explanation:

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.

Similar questions