write a program in java for the follwing .to input five subject marks and print total percentage
Answers
Answered by
2
Question :write a program in java for the follwing .to input five subject marks and print total percentage
Answer :Logic to find total, average and percentage
Input marks of five subjects. ...
Calculate sum of all subjects and store in total = eng + phy + chem + math + comp.
Divide sum of all subjects by total number of subject to find average i.e. average = total / 5.
Calculate percentage using percentage = (average / 500) * 100.
Similar questions