Aaron Lakely is going to the grocery store to buy some bananas and apples, both of which
Question:
Aaron Lakely is going to the grocery store to buy some bananas and apples, both of which are sold by the pound. He wants a program that calculates and displays the total cost of his order, including a 3% sales tax. First, create an IPO chart for this problem, and then desk-check the algorithm twice. For the first desk-check, use 2 and 3.5 as the number of pounds of bananas and apples, respectively. And use $0.99 and $1.89 as the price per pound of bananas and apples, respectively. For the second desk-check, use your own set of data. After desk-checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and then enter the appropriate C++ declaration statements.
Step by Step Answer:
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell