This Java program takes in a student's name, class, and marks in 3 subjects from the user. It then calculates the average marks and determines the grade based on the average. The average is calculated by adding the marks of 3 subjects and dividing it by 3. Based on the average, the grade is determined as A, B, C or D. Finally, it prints the average marks and grade.
This Java program takes in a student's name, class, and marks in 3 subjects from the user. It then calculates the average marks and determines the grade based on the average. The average is calculated by adding the marks of 3 subjects and dividing it by 3. Based on the average, the grade is determined as A, B, C or D. Finally, it prints the average marks and grade.
This Java program takes in a student's name, class, and marks in 3 subjects from the user. It then calculates the average marks and determines the grade based on the average. The average is calculated by adding the marks of 3 subjects and dividing it by 3. Based on the average, the grade is determined as A, B, C or D. Finally, it prints the average marks and grade.