You start a company selling Catbots, cute robotic cats. You have two models:
Model | Price | Weight (kilos) |
Darth 1000 | $159 | 1.1 |
SayTen 44b | $299 | 1.9 |
Write a program to compute the price of an order. It reports shipping cost, and total cost. The program starts like this:
Customers enter the number of each bot they want. Check that the data is numeric, and between zero and five inclusive. Show an error message if the data is bad. For example:
Shipping cost depends on the order. Orders for $1,000 or more (excluding shipping) are shipped for free. Otherwise, shipping is $4 per kilo. For example:
Use the IPO pattern, that is, separate subs for input, processing, and output.
Upload your worksheet. The usual coding standards apply.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)