Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions