Programing problem
Scenario: “You’ll Love Our Mugs” sells mugs – there are no size or color choices, however, the customer has
the option of adding a logo and / or a name to the mug. The cost of the mug by itself is $10, the logo cost is
$3 per mug, and the name cost is $2 per mug. In addition, if the user purchases 10 or more mugs (with or
without logo/name) the shipping charge is $0. If they buy less than 10 mugs, the shipping cost is a flat $5 fee.
There is a sales tax of 7%. (The sales tax is calculated before the shipping fee.) SAMPLE PROGRAM RUN IS ON
PAGE 2
Create a program that does the following:
(1) Purpose of program
(2) Constants – basic mug price, logo price, name charge price, sales tax amount, shipping more than 10,
shipping less than ten
(3) Variables – name cost, logo cost, number ordered, mug price, total price, shipping cost, amount owed,
order mugs (string), logo (string), name (string)
(4) Welcomes the customer to the store, let’s them know they can either order a plain mug or have the
option of adding a logo and/or name, the minimum order is 5 mugs, and tells them about the shipping
fees as outlined in the scenario above. (print statements)
(5) Asks the user if they wish to order mugs (input function)- if not (if statement), thank them for visiting
the store and say you hope to see them again. (print statement)
(6) If the user orders mugs (while statement Y) – ask them how many (input function)
(7) Check to see if they ordered the minimum number. (if statement, print statement telling them they did
not make minimum)
(8) If they did not order the minimum number, let them know they did not (print statement) and give them
the option to re-enter the number. (input function)
(9) Calculate the mug price (calculation) and let them know the cost of the mugs without customization
(print statement – formatted for currency to 2 decimals)
(10) See if the customer wants to add a logo, (input function) if so (if statement Y) calculate the cost of the
logo (calculation) and let them know how much it cost for JUST THE LOGO.(print statement formatted to
currency 2 decimal places) If not (else), remind them the cost of just the mugs. (print statement
formatted to currency 2 decimals)
(11) See if the customer wants to add a name (input function), if so calculate the cost of the name
(calculation) and let them know how much it will cost for JUST THE NAME . (print statement formatted to
currency 2 decimals). If not (else), just remind them the cost of the mugs (print statement formatted to
currency 2 decimals)
(12) Calculate the total cost of the mugs (calculations) (including any logo or name if the user chose that
option)

(13) Calculate the sales tax owed. (calculation)
(14) Calculate the shipping charge (if..else statement – did they order enough for no shipping cost)
(15) Calculate the total amount owed. (calculation)
(16) Print the following: (print statements with variable names formatted to currency with 2 decimals)
Number ordered and cost of mugs without logo/name
Cost of Logo
Cost of Name
Cost of Shipping
Total Amount Owed
(17) Ask the user if they would like to order any more mugs (input function)
(18) End the program (press any key)