The objective of each assignment is to give you a chance


The objective of each assignment is to give you a chance to apply the design concepts and techniques learned in the chapters covered. It is important that you understand each step as you layout the assignment. It is not a question of "imitating" the examples in the text or copying them, but understanding the examples and using that understanding to complete the assignment. You should continuously ask yourself, "Why am I doing this?" The answer should not be, just because the example does it. 

Assignment 2 

Sales Tax Program

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county tax. Assume the state sales tax is 4 percent (.04) and the county tax is 2 percent (.02). The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of the purchase plus the total sales tax). 

The objective of the assignment is to develop the program using modular design covered in Chapter 3 in addition to using the design techniques covered in Chapter 2.

(This assignment is a combination of Exercise # 6 on page 73 and Exercise # 2 on page 113.)

Use the "In the Spotlight" example shown on pages 84 to 88, which shows the use of modules in pseudocode, as a basis for you assignment. However, use appropriate module names. Do not use step(1), step(2) etc. used in the example. Make sure you understand the other examples "In the Spotlight" on pages 95-97, 100-103, and 105-108 which demonstrate the use of passing arguments/data between modules. 

1) Develop a list of major steps to follow to get input, process, and output the desired information (software requirements).
2) Refine the list to include individual refined steps (algorithm).
3) Develop a structure (hierarchy) chart with a main module, submodules, the parameter variables, and reference in the reference variables in the parentheses as needed.
4) Write the pseudocode for each module of the structure chart.
5) Create the corresponding flowcharts.
6) Set up the hand trace chart to test the logic of your pseudocode. 

The structure chart and flowcharts can be developed using Microsoft Word. There is an organization chart feature for the structure chart and a draw and flowchart feature also. Use the Microsoft Help to learn how to access and use these features.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The objective of each assignment is to give you a chance
Reference No:- TGS0135519

Expected delivery within 24 Hours