Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Submit a link to your program on Google Classroom.A college is offering courses and needs a program designed to calculate tuition.Requirements: The program will consist
Submit a link to your program on Google Classroom.A college is offering courses and needs a program designed to calculate tuition.Requirements: The program will consist of class. Each nondriver class should utilize Javadoc comments see the codeHS lesson if necessaryCourse Class this class records the details of a course. Instance variables fieldso Name of the course ie IT o Credit hours as an integero Days of the week class meets as a stringo Time of the day the class meets as a stringo Boolean variable indicating whether the course has a lab Methodso Constructor parameterized to accept all five instance variableso Getters and setters for all five instance variableso toString method that should return the contents of the course in a readable format seesample output for an exampleInStateRegistration Class This class calculations the tuition cost for instate students. Instate studentscan take credit hours for the same cost. If they enroll in less than hours, they will be subject tothe hourly rate. Each student that registers must also pay a onetime technology fee, which is addedto the final total. Constant variableso Full time tuition rate o Minimum full time hours o Maximum full time hours o Per hour rate o Lab fees o Technology fee Instance variableso Current semester hourso Number of labso Public static variable for count that keeps track of the total instate students createdsee codeHS lesson if necessary Methodso Constructor that accepts the hours and number of labs as parameters. Since nostudent is allowed to register for more than credit hours, if the total semester hours isnot greater than then it sets the values of hours and labs and adds one to the countfor each InStateRegistration created. It generates an error message if the total hours is more than Values are set to and the count is NOT incremented.o Getters and setters for hours and labso toString method that should return the contents of this class in a readable format seethe sample output for an exampleo calculateTuition This method returns the result of calculating the tuition based on thetotal number of hours and the number of labs. If the total number of hours is less than then the per credit rate is used multiplied by total number of hours. If hours arebetween and then full time tuition rate is used. After calculating the tuition, youmust also add the lab fee cost, which is number of labs multiplied by lab fees.total tuition fulltime rate number of labs lab feesortotal tuition per hour rate current semester hours number of labs lab feeso calculateTotalCost this method returns the result of adding the technology fee to thetotal tuition that calls the calculateTuition method.OutOfStateRegistration Class This class calculates the tuition cost for outofstate students. Studentsoutofstate are charged a per credit hour rate, regardless of hours. Each student that registers mustalso pay a onetime technology fee which is added to the final total. Constant variableso Per hours rate o Lab fees o Technology fee Instance variableso Current semester hourso Number of labso Public state variable for count that keeps track of the total outofstate studentscreated see codeHS lesson for example Methodso Constructor that accepts the hours and number of labs as parameters. If total semesterhours is not greater than then it sets the values of hours and labs and adds one tothe count for each OutStateRegistration created. It generates an error message if the total hours is more than Values are set to and count is NOT incremented.o Getters and setters for hours and labso toString method that will return the formatted contents of the outofstate students. Seesample output for format. Note that Number of labs should not be output if the numberof labs is o calculateTuition This method returns the result of calculating the tuition based on thetotal number of hours and the number of labso total tuition per hour rate current semester hours number of labs lab feeso calculateTotalCost This method returns the result of adding the technology fee to thetotal tuition that calls the calculateTuition method.Registration Class Driver This class will contain your main method and manage the construction ofthe courses as well as registration of the students. Instantiate six Course objects with the information below. You will hardcode these values incalling the constructor of the course class and passing in the values from the table.CoursenameCredithoursDays Time Labs?Math TR :: FalseEngl MW : FalseIT MW : TrueIT TR ::FalseChem MW : TrueIT TR : False Until the user indicates they are done adding student registrations, you should display themenu of the courses offered and allow the user to select a course to add. You will keep track of the total credit hours and the number of lab courses for thestudent and then once all courses have been selected, a menu will be output thatallows the user to select whether the student is in state or out of state, and theappropriate object is created and costs are output. Once all information for a student is processed, the user should be prompted as towhether or not there is another student to register. If yes, repeat for the next student.Once all students have been processed, output a total for all students, which shouldinclude total number of each type of student and total tuition collected. Methodso displayCourseMenu this method accepts all six courses created and uses the namesof these courses to display a menu see sample output for an exampleo determineType this method displays a menu for the two types of students instate and Outofstate
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