Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to put this code into Flowgorithm and I am having trouble and can't get my program to run. Can you please input

I am trying to put this code into Flowgorithm and I am having trouble and can't get my program to run. Can you please input this code into flowgorithm and provide screenshots of how each of these modules is supposed to look? I have the pseudocode written out below:

Module main ()

//Declare local variables

Declare Real totalSales

Declare Real countyTax____________________________

Declare Real stateTax_____________________________

Declare Real totalTax_____________________________

______________________________________________________

//Function calls

Call inputData(totalSales)

Call calcCounty(totalSales, countyTax)

Call calcState(totalSales,stateTax)____________

Call calcTotal(countyTax, stateTax, totalTax)

Call printData(countyTax, stateTax, totalTax)

End Module

//this module takes in the required user input

Module inputData(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)

countyTax = totalSales * .02

End Module

//this module calculates state tax

Module ___ calcState(Real totalSales, real Ref stateTax)

stateTax = totalSales * .04

___________________________________________________

______________________________________________________

______________________________________________________

______________________________________________________

______________________________________________________

End Module

//this module calculates total tax

Module ____ calcTotal(Real Ref totalTax, Real stateTax, Real countyTax)

totalTax = countyTax + stateTax

______________________________________________________

End Module

//this module prints the total, county, and state tax

Module _ printData(Real countyTax, Real stateTax, Real Ref totalTax)

Display The county tax is , countyTax

Display the state tax is , stateTax

Display The total tax is , totalTax

______________________________________________________

End Module

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

=+ (c) Show that $ is countable if and only if L2 is separable.

Answered: 1 week ago