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 and a valid assignment score between and and a valid attendance percentage between and
Students need to meet specific criteria for each grade level.
Grade Criteria:
A Grade:
Exam Score:
Assignment Score:
Attendance:
B Grade:
Exam Score:
Assignment Score:
Attendance:
C Grade:
Exam Score:
Assignment Score:
Attendance:
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:
Prompt the user to input the exam score, assignment score, and attendance percentage.
Check if each input is within the valid range.
Use nested ifthenelse statements to evaluate whether the student meets the criteria for an A B or C grade.
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 ifthenelse 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
