Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fill in the Blanks This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following

Fill in the Blanks

image text in transcribed

This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab. 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 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) End Module Step 1: This program is most easily solved using just four variables. Declare the // this module takes in the required user input variables that you will need in the program, using the proper data type and documenting the purpose. Module jngutRatz(Real Ref totalsales) Display "Enter the total sales for the month." Input tatalsales End Module // this module calculates county tax // sotglselef can be a value parameter because it is not // changed in the module. // gqunt XTax, must be a reference parameter becauge it is // changed in the module Module gajcGounty(Real totalsalear Real Ref goyntyTax) Step 2: Given the major task involved in this program, what modules might you consider including? Describe the purpose of each module. (Reference: Defining and Calling a End Module Module, page 106). // this module calculates atate tax Module End Module // this module calculates total tax Module Step 3: Complete the pseudocode by writing the missing lines. (Reference: Defining and Calling a Module, page (j). Also, when writing your modules and making calls, be sure to pass necessary variables as arguments and accept them as reference parameters if End Module they need to be modified in the module. (Reference: Passing Arguments by Value and by Reference, page (:)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions