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.
Write a Problem analysis chart  & an algorithm, create an IPO and draw a flowchart for solving...
Write a Problem analysis chart  & an algorithm, create an IPO and draw a flowchart for solving a Quadratic equation.
Valid or Invalid Password Deliverables • Complete one document that shows your planning (IPO Chart). Include...
Valid or Invalid Password Deliverables • Complete one document that shows your planning (IPO Chart). Include in it Input, Processing, Output, Variables, Algorithm, Testing Conditions • Complete the code for your method and test it then upload for grading Requirements: Write a Java method to check whether a string is a valid password. Password rules: A password must have at least ten characters. A password consists of only letters and digits. A password must contain at least two digits. Expected...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT