Design a method that calculates the cost of a semesters


Problem

Complete the following tasks:

a. Design a method that calculates the cost of a semester's tuition for a college student at Mid-State University. Variables include whether the student is an in-state resident ("I" for in-state or "O" for out-of-state) and the number of credit hours for which the student is enrolling. The method should throw an exception if the residency code is invalid. Tuition is $75 per credit hour for in-state students and $125 per credit hour for out-of-state students. If a student enrolls in six hours or fewer, there is an additional $100 surcharge. Any student enrolled in 19 hours or more pays only the rate for 18 credit hours.

b. Write a method that calls the method designed in. If the method throws an exception, force the tuition to 0.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design a method that calculates the cost of a semesters
Reference No:- TGS02648774

Expected delivery within 24 Hours