Answered step by step
Verified Expert Solution
Question
1 Approved Answer
output not needed but please the code first Create a three different java classes Student, Marks and Grade with necessary attributes and methods. Write a
output not needed but please the code first
Create a three different java classes Student, Marks and Grade with necessary attributes and methods. Write a Test main class which gets the following i given expected output conditions. Get student name, regno, noofsubjects and its marks. Functional requirements of the classes: 1. Student class should hold name, regno. 2. If the student class have null values in name or regno, it should through a NullPointerException 3. Marks class should store all the subject marks and if any mark is negative values or more than 100, it should through a user defined exception messag 4. If the number of subject is less than 1, grade class should through an ArithmeticException 5. Grade class should find the grade based on the following conditions If average of mark is >= 90 - A grade If average of mark is >= 80 and = 70 andStep 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