write a c++ program to calculate average marks of each student and display student name, enrollment no, and their stream
Answers
Answered by
0
Calculate Average and Percentage Marks of Student in C++
To calculate average and percentage marks of a student in C++ programming, you have to ask to the user to enter marks obtained in some number of subjects (5 subjects here). Place summation of 5 subject's marks in a variable say sum and place sum/5 in a variable say avg (average of 5 subjects) then place sum/500*100 in a variable say perc(percentage marks), then display the result on the screen as shown here in the following program.
To calculate average and percentage marks of a student in C++ programming, you have to ask to the user to enter marks obtained in some number of subjects (5 subjects here). Place summation of 5 subject's marks in a variable say sum and place sum/5 in a variable say avg (average of 5 subjects) then place sum/500*100 in a variable say perc(percentage marks), then display the result on the screen as shown here in the following program.
Similar questions