Question: Create a C program that will: Display a menu of 5 to 10 differently priced items for sale to the user Input the number of
Create a C program that will:
Display a menu of 5 to 10 differently priced items for sale to the user
Input the number of the menu item they selected
Use switch-case to determine the cost of the item number they selected. You should have a case for every item and use the else for unexpected values
Tell the user that there is a buy one, get one off sale where the less expensive item is off
Allow the user to select a 2nd item
Use if-else to determine which is the less expensive item to discount to of the original price
Declare and use appropriate identifiers needed to accomplish your code objectives
Use the code from the previous labs for the welcome screen and to calculate Indiana sales tax
At the end of the program, display the discount amount, subtotal, sales tax and total cost
At this point you should have a name for your store and have determined what kind of things you will be selling. These should be consistent in your labs and final project from this point forward. If you have questions about this, please talk to the instructor about it.
The output should be well formatted, showing dollar signs ($) and 2 decimal place precision and aligning the decimal places in the output of the calculated values.
Your named constant and programmer-defined identifiers should be meaningful and follow good programming practices.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
