C# Program to Generate Marksheet of Student
Given the marks of the students, now we generate a mark sheet of students by calculating three subject marks of students by entering student names and roll numbers.
Input: Enter Student Roll-Number: 1 Enter Student Name: manoj Enter Subject-1 Marks :90 Enter Subject-2 Marks :78 Enter Subject-3 Marks :96 Output: Total Marks: 264 Percentage: 88 Grade is A
- Declare the variables(i.e., marks1, marks2, and marks3) that will holds the marks of three subjects, i.e., Subject-1, Subject-2, and Subject-3.
- Read the student data from the user.
- Calculate total marks of the three subjects.total = marks1 + marks2 + marks3;
- Find the percentage.percentage = total / 3.0f;
- Display the final percentage of the student.
- Calculate and display the grades of the student also according to their percentage.
Enter Student Roll Number : 13 Enter Student Name : Hitesh Enter Subject-1 Marks : 56 Enter Subject-2 Marks : 78 Enter Subject-3 Marks : 87 Final result of Hitesh is: Total Marks : 221 Percentage : 73.66666 Grade is B+