Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started