Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I would like to get a rough estimate on how much tuition and fees will cost me this semester While a paper, pencil and calculator

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
I would like to get a rough estimate on how much tuition and fees will cost me this semester While a paper, pencil and calculator could do the trick, I would like for you to practice your use of integers, doubles, cin, cout, conditional branches(it/else), and loops to create a program that will calculate the total tuition Specification A flow chart of the following specification can be found within Project 2 on Canvas First ask the user if they are a student Are you a student? If the answer is N (or no exit the program. If the answer is (for yes) then ask the next question How many classes are you taking? If the user enters a value less than 1. continue on to printing the summary Then ask the user What is the cost per credit hour? Then for each class ask the user How many credit hours is class #x? while the user enters a value less than 1, print "Classes must be at least 1 or more credits." Then repeat the question Are there any fees for class ax? If the answer is Y (for yes) then ask the next question: What is the total amount of fees for class #x? You can assume the user will enter a double value greater than for the fees Print the summary and exit the program The summary consists of the total number of credit hours, their cost, the total amount of fees, the subtotal, the tax rate (7,5%), and then the total. All monetary values must be printed using two decimal places. An example of how to do so can be found here (e this is a link) Sample Execution Input This input can be entered either directly into the terminal after each question when you run the program, or it can be entered into the input box provided before running the program. Using the input box means you only need to type it in once however manually entering it may help you when debugging if the program is quitting unexpectedly, 5 215.55 3 Sample Execution Input This input can be entered either directly into the terminal after each question when you run the program, or it can be entered into the input box provided before running the program. Using the input box means you only need to type it in once, however manually entering it may help you when debugging if the program is quitting unexpectedly, Y 5 215.55 3 200.00 3 Y 150.00 4 y 200.00 1 1 y 47.65 150.00 y 200.00 1 n 1 47.65 Output Are you a student? How many classes are you taking? What is the cost per credit hour? How many credit hours is class 12 Are there any fees for class 1? What is the total amount of Eees for class 12 How many credit hours is class 22 Are there any fees for class 27 What is the total amount of fees for class 2? How many credit hours is class 3? Are there any fees for class 3? What is the total amount of fees for class 37 How many credit hours is class 42 Are there any fees for class 4? How many credit hours is class 5? Are there any fees for class 5? What is the total amount of fees for class 5? SUMMARY Number of credit hours: 12 Coat per credit hour: 215.55 Fees: 597.65 Subtotal: 3184.25 Total: 3423.07 as Char: Y ats ve How many classes are you taking? Integer > 0 What is the cost per credit hour Double While current iteration is less than the number of classes Inferger 0 While condition is true How many credit hours for class #x Into Classes must be at least 1 or more Int> When condition is false Are there any Vees for class ? Char N Char What is the total amount of fees for Print Summary

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago