Question

In: Computer Science

Show your results all planning tools (algorithm, IPO chart, desk checking, pseudocode, flowchart) for an application...

Show your results all planning tools (algorithm, IPO chart, desk checking, pseudocode, flowchart) for an application that allows a user to enter the price of an item and computes 6.25 percent sales tax on the item.

Solutions

Expert Solution

The above images describe the constant calculation, algorithm, IPO chart, pseudocode, and the flow chart for the given problem.

For desk checking, you could dry run various use-cases (with price in some currency unit) on the given algorithm as illustrated below:

  1. Input price given as 100. The ST as calculated by above algorithm would be 100 * 0.0625, that is 6.25. When using a calculator for the same calculation, the answer comes out to be 6.25.
  2. Input price given as 200. The ST as calculated by above algorithm would be 200 * 0.0625, that is 12.5. When using a calculator for the same calculation, the answer comes out to be 12.5.
  3. Input price given as 150. The ST as calculated by above algorithm would be 150 * 0.0625, that is 9.375. When using a calculator for the same calculation, the answer comes out to be 9.375.
  4. Input price given as 300. The ST as calculated by above algorithm would be 300 * 0.0625, that is 18.75. When using a calculator for the same calculation, the answer comes out to be 18.75.

You could assume other cases as well, as per your imagination and try desk checking the given algorithm.


Related Solutions

Show your results using all planning tools (algorithm, IPO chart, desk checking, pseudocode, flowchart) for an...
Show your results using all planning tools (algorithm, IPO chart, desk checking, pseudocode, flowchart) for an application that allows a user to enter the number of text messages he or she sent last month and then displays the bill. Messages cost 25 cents each, and 8 percent tax is charged on the total.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT