Programming Step 2
Figure out what the correct answer should look like
- If you do not know approximately what the answer should be, there will be no way to check whether your program is working correctly.
- For this problem, you can take a calculator and multiply out the answers
9 pounds x 454 + 15 ounces x 28.35 = 4511.25
9 pounds x 454 + 5 ounces x 28.35 = 4227.75
10 pounds x 454 + 5 ounces x 28.35 = 4681.75