Design a method in pseudocode that calculates the cost of a semester\'s tuition
ID: 3615709 • Letter: D
Question
Design a method in pseudocode 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.Explanation / Answer
please rate - thanks everyone does pseudocode differently hope this works for you character resident integer credits integer tuition loop: get state_residency if state_residency != I and state_residency !=O throw exception and try again (go toloop) get credits if credits > 18 credits = 18 if state_residency = 'I' tuition=75 * credits otherwise tuition =125 *credits if creditsRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.