Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in C++ please. thank you 3.22 LAB: Summer tuition charges The tuition charges for summer courses at a university are based on the number of
in C++ please. thank you
3.22 LAB: Summer tuition charges The tuition charges for summer courses at a university are based on the number of credit hours a student is taking and the college of their major: Write a program that asks for the number of credit hours the student is taking and for which college ('L' for Liberal Arts , 'S' for Science and Engineering, and 'B' for Business) then outputs the cost of tuition for that student (formatted to 2 decimal places). The credit hours should be entered as whole numbers. Input Validation: Do not accept values of 0 or less for the number of credit hours. Do not accept characters other than 'L', 'S', and 'B' for the college. If invalid values are input, your program should exit with an error message. Sample input and output: Ex: If the input is: B 5 the output is: Ex: If the input is: L 9 the output is: The cost of tuition is: $3000.00 Ex: If the input is: A 3 the output is: Your solution must use a switch statement and use the provided named constants. Load default teStep 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