Answered step by step
Verified Expert Solution
Link Copied!

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 youimage text in transcribedimage text in transcribedimage text in transcribed

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 te

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions