Question: You are tasked with creating a program in java to evaluate students' academic records and determine their eligibility for promotion to the next grade. The

You are tasked with creating a program in java to evaluate students' academic records and determine their eligibility for promotion to the next grade. The evaluation is based on three factors: exam scores, assignment scores, and attendance.
Requirements:
Students must have a valid exam score (between 0 and 100), a valid assignment score (between 0 and 50), and a valid attendance percentage (between 0 and 100).
2.Students need to meet specific criteria for each grade level.
Grade Criteria:
A Grade:
Exam Score: >=70
Assignment Score: >=30
Attendance: >=75%
B Grade:
Exam Score: >=60
Assignment Score: >=25
Attendance: >=70%
C Grade:
Exam Score: >=50
Assignment Score: >=20
Attendance: >=65%
Output:
If a student meets the criteria for a grade, print a message congratulating them on passing with that grade.
If a student does not meet the criteria for any grade, print a message indicating that they did not pass.
Execution Instructions:
1.) Prompt the user to input the exam score, assignment score, and attendance percentage.
2.) Check if each input is within the valid range.
3.) Use nested if-then-else statements to evaluate whether the student meets the criteria for an A, B, or C grade.
4.) Display the corresponding message based on the calculated grade or indicate that the student did not pass.
Note:
Ensure to include appropriate error messages for invalid input ranges and handle edge cases to provide clear feedback to the user.
This machine problem challenges students to design a program based on nested if-then-else logic to evaluate complex conditions for academic records.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!