A microwave oven manufacturer recommends that when heating two items, add 50% to the heating time, and when heating three items double the heating time. Heating more than three items at once is not recommended.
Write a program that asks the user for the number of items and the single-item heating time. The program then writes out the recommended heating time.
Hint: do this with four successive single-branch if statements each of which tests for one of the four cases: 1 item, 2 items, 3 items, more than three items. Look at the sports car purchase program in the chapter to see how to do this, if you are stuck
2007-03-08
19:14:03
·
4 answers
·
asked by
Anonymous