Give the user an unlimited amount of chances to enter the a valid number of order

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Project Instructions
You have been hired by a local smoothie shop to write a program that will calculate the cost of a smoothie order. The shop sells four types of smoothies in three different sizes: Small (20 oz), Medium (32 oz) and Large (40 oz). Your program should use a menu for the type of smoothie and a second menu for the smoothie size. Calculate the total cost of the order including tax and display a bill for the smoothie. See the Sample Output. The sales tax rate is 4.5%. Use named constants to hold the cost per ounce of each of the products and the sales tax rate. Use the constants in your calculations and wherever else they are appropriate in your program.
Product Cost per Ounce
Banana $0.62
Strawberry $0.60
Mango $0.48
Blueberry $0.57
modular.
Instead of having one long main function that contains all the statements necessary to solve the problem given in previous projects, you must write several smaller functions that each solve a specific part of the problem. These small functions should then be executed in the correct order to implement a complete solution.
The named constants you used in previous projects should now be made global so you won’t have to pass those values to any function.
In addition to the main function, your code must include the specified functions. These functionss must be written exactly as specified to avoid a major error penalty.
Make sure your program uses the values returned from your functions. Any functions that need input to perform a task will have to accept arguments. Global variables are prohibited.
Steps:
Make all of your named constants global.
Define prototypes and define the following functions:
Function 1 – displayStartMenu
A void function that only displays the first menu. See Sample Output for format.
Function 2 – determineCostPerOz
A double returning function that accepts the user’s menu choice for type of smoothie and returns the price per ounce.
Function 3 – determineNumberOunces
An integer returning function that accepts the user’s menu choice for size of smoothie and returns the number of ounces.
Function 4– calcSmoothieSubtotal
A double returning function that accepts the price per ounce and the number of ounces purchased and returns the price of the smoothie.
Function 5– calcSalesTax
A double returning function that ONLY accepts the price of the smoothie and returns the sales tax.
Function 6– calcCostBill
A double method that accepts the price of the smoothie and the sales tax and returns the total amount owed.
NOTE: All functions must be coded as instructed above. Modifying the functions (meaning adding or removing parameters, changing the return type of the function, etc…) will count as a major error (i.e., one major error deduction for each function that is modified.)
.
The start menu must still give the user the ability to process a single order manually, process multiple orders, or quit the program. For this new menu only, you must validate the user’s menu choice so that only values of 1, 2 or 3 are accepted and users have an unlimited number of chances to enter a valid menu choice. Your program must continue to run until the user chooses the “quit” option from your menu.
sample run video:
Previous Project Steps:
Add a menu to offer the user a choice of processing a single order, processing multiple orders, quit the program. This menu should be the first thing displayed when your program begins executing. The menu format should match the one in the Sample Output.
Allow the user to continue making menu choices until they choose the option to quit. Always display the menu before prompting the user for a menu option. Properly handle an invalid menu choice. The user should have an unlimited number of chances to enter a valid menu choice.
Add functionality to display randomly generated smoothie orders. When the user selects the option to process multiple orders, bills should be created and displayed for every entry. The user should be asked to enter the number of orders they would like to make, then random numbers should be used to generate the smoothie type and the size. Each bill generated should display the order number, smoothie type for the order, the size of the smoothie, the subtotal of the smoothie, the sales tax for the smoothie, and the total cost for the order. See the Sample Output for what each bill must contain. The example contains 5 records, but your program must be able to process any number of records based on the number of orders the user chooses. Validate the input of the number of orders so that the user must enter at least 1 order and no more than 10 orders. Give the user an unlimited amount of chances to enter the a valid number of order

For This or a Similar Paper Click To Order Now

SmiteWriter
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.