Question: help please 1. Let's think about the steps that take place in a program and write pseudocode for the program. A retail company must file

help please  help please 1. Let's think about the steps that take place
in a program and write pseudocode for the program. A retail company
must file a monthly sales tax report listing the total sales for

1. Let's think about the steps that take place in a program and write pseudocode for the program. A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write pseudocode for a program that asks the user to enter the total sales for the month. The application should calculate and display the following: The amount of county sales tax The amount of state sales tax The total sales tax (county plus state) . Step 1: This program is most easily solved using just four variables. Declare the variables that you will need in the program, using the proper data type and documenting the purpose. Declaration Declare Real totalSales Purpose Stores total sales the user inputs Step 2: Given the major task involved in this program, what modules might you consider including? Describe the purpose of each module. Module Name Module inputData() Purpose Allows the user to enter required user input Step 3: Complete the pseudocode by writing the missing lines. Also, when writing your modules and making calls, be sure to pass necessary variables as arguments and accept them as reference parameters only if they need to be modified in the module. Note that we are using global constants for the state and county sales tax rates. // global constants for the tax rates Constant Real STATE TAX_RATE - .04 Constant Real COUNTY_TAX_RATE = .02 Module main //Declare local variables Declare Real totalSales //Module calls Call input Data (totalSales) Call caleCounty (totalSales, countytax) End Module //this module inputs the total sales data required //from the user Module input Data (Real Ref totalSales) Display "Enter the total sales for the month." Input totalsales End Module //this module calculates county tax //totalSales can be a value parameter because it is not //changed in the module. //countyTax must be a reference parameter because it is //changed in the module Module calcCounty (Real totalSales, Real Ref countytax) Set countyTax = totalSales . COUNTY_TAX_RATE End Module // this module calculates state tax Module End Module V/this module calculates total tax Module End Module //this module prints the total, county, and state tax Module End Module

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!