Design a program which will calculate the total cost of an


Question: Design a program which will calculate the total cost of an order for the three products we sell. The user will be asked how many T-Shirts they want, how many Coffee Cups they want and how many Portable Hard Drives they want. Each of these numbers must be positive (no less than zero) but there is no upper limit.

- T-Shirts cost $15, Cups cost $5 and Portable Hard Drives cost $100.

- If the total order cost is more than $150 then we provide free shipping, otherwise the shipping costs are $3 per item.

- Once the total cost of items and shipping has been calculated the total is displayed with a dollar sign in front of it.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Design a program which will calculate the total cost of an
Reference No:- TGS02469870

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)