Module main()
//Declare local variables
Declare Real totalSales
______________________
______________________
______________________
______________________
//Function calls
Call inputData(totalSales)
call calcCounty(totalSales, CountyTax)
_________________________________
_________________________________
_________________________________
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 papameter because it is not changed in the module.
//countyTax must be a reference papameter because it is
//Changed in the module
Module calcCounty(real totalSales, real ref countyTax)
countyTax = totalSales * .02
end Module
//this module calculates state tax at 4%
Module _________________________
___________________________
___________________________
___________________________
___________________________
End Module
//this module calculates total tax
Module ________________________
__________________________
__________________________
__________________________
__________________________
End Module
//this module prints the total, county, and state tax
Module __________________________
____________________________
____________________________
____________________________
____________________________
End module