Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that will allow the user to buy notebooks,pens,and or pencils fr

ID: 3529259 • Letter: W

Question

Write a program that will allow the user to buy notebooks,pens,and or pencils from your store and display the total due. Your program should first ask the user what item he/she wants to purchase. If the user indicates an item that your store does not sell, an error message should display telling the user that you do not sell that item. Otherwise ask the user how many of the item he/she wants to buy, Make sure that the input is a positive number before proceeding. Calculate and display the subtotal to the user. The prices for the items are as follow: Notebooks are $1.50 each Pens are $.30 each, unless the user enters an coupon code "pen23". If the user enters the correct code pen are $.25 each. Pencils: 1-4 $.20 each 5-9 $.15 each 10 or more $.10 each This process of allowing the user to select an item and your program displaying the subtotal should continue until the user enters EXIT when prompted for the item he/she wants to purchase. After the user types EXIT, Your program should display the total amount due. If, While the program is running, the user selects the same item a second time, only the most recent subtotal will be reflected in the total. You can assume that the user will type in his/her input choice using all upper case letters. Copy and paste each of the sample runs to the bottom of your code

Explanation / Answer

in which language do u want the program

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote