- The Solving Program I Need It In Netbeans Ide Java Programming Langauge Because We Use It In Uneversity 1 (160.24 KiB) Viewed 31 times
The solving program i need it in netbeans IDE java programming langauge because we use it in uneversity
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The solving program i need it in netbeans IDE java programming langauge because we use it in uneversity
ID: EA Name: Sec: _ Marks: 1. As the Semester is about to end and grades are calculated. Write a java program to create a student class with details such as Name, ID, F.QuizGrades. In the main class allow the user to enter details of arbitrary numbers of students. Then check if ID initials are "219" using string functions. Allow user to enter 3 quiz grades and then check if the entered grades are greater than zero. If both conditions are satisfied, then pass values using an array of objects (NO ARRAY LIST). Also, only the highest of 3 quizzes should be passed. Each check should throw an exception and when caught it should display message based on exception. Lastly, Print the array of details and check for array index exception as well. For reference have a look at the below output. Hint: max, starts with functions can be used (5 Marks) OUTPUT: Enput number of students Input Student Rome, 19. Quizzes Grades Enter Details of Student-11 Input Student Name: Ahmed Input Student ID: 219001 Input Quir-1 Grade 1 Input Ouiz-2 Gradesi -2 Input Our Grades - The Error Message is: Grade should be greater than Zero Input number of students13 Input Student Name, ID, Quirzes Grades Enter Details of Student-1: Input Student Name: Ahmed Trout Student ID: 219091 Input Quir-1 Grades: 3 Input Quiz-2 Grades: 4 Input Quiz-3 Grades: 5 Enter Details of Student-2: Input Student Namel Khaled Input Student ID: 21082 Input Quiz-1 Grades: 3 Input Quiz-2 Grades 3 Input Quir-3 Grades: 2 Enter Details of Student-3: Input Student Name: Ibrahim Input Student ID: 211003 Input Quiz-1 Grades: 3 Trout Quiz-2 Grades: 3 prout Quiz-3 Grades: 3 The Student Grades Details are Student-1: Ahmed 219001 5.2 Student-2: Khaled 219062 3.0 Student-3. Thrahin 219003 3. Input number of students:3 Input Student Name, ID, Quizzes Grades Enter Details of Student-11 Input Student Name Ahmed Input Student ID: 219001 Input Quiz-1 Gradesi 2 Input Qui2-2 Grades 2 Input Quiz-3 Grades 2 Enter Details of Student-2: Input Student Name Khaled Input Student ID: 219002 Input Quiz-1 Grades: 3 Input Quiz-2 Grades: 3 Input Quiz-3 Grades: 3 Enter Details of Student-3: Input Student Name: Ibrahim Input Student ID 219003 Input Quiz-1 Grades: 2 Input Quiz-2 Grades: 2 Input Quiz-3 Grades 3 The Student Grades Details are: Student-1: Ahmed 215001 2.8 Student-2: Khaled 219402 3.0 Student-3: Ibrahim 219003 3.0 The Error Message is. Index 3 out of bounds for length Input Student Name, ID, Quizzes Grades Enter Details of Student-1: Input Student Name: Ahmed Input Student ID: 218001 Input Quiz-1 Grades: 2 Input Quiz-2 Grades: 2 Input Quiz-3 Grades: 2 The Error Message is: Incorrect ID Format Solution: Submit the code and output screen in the same word document using blackboard.