Question

In: Computer Science

A retail company must file a monthly sales tax report listing the total sales for the...

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% and the county sales tax rate is 2%. Create an application that allows the user to enter the total sales from the month. From this figure, the application should calculate and display the following: 1. The amount of country sales tax 2. The amount of state sales tax 3. The total sales tax (county plus state) The following represents the requirements for this project: 1. The project should be named Project1 2. When saving the project, uncheck the “Create directory for solution” checkbox. 3. The form (file and object name) should be renamed from Form1 to frmMain 4. The form layout should be very similar to the following in terms of control alignment, sizes, spelling, meaningful labels and an overall professional look: 5. When the application is run have the form display in the middle of the screen. 6. Set the Form Accept and Cancel Button properties. 7. The label controls for the County, State and Total Sales Tax should be contained within a Group Box. 8. The labels which display the type of sales tax should all be aligned to the right. 9. The labels which display each of the sales tax should have the Border Style property set to Fixed3D. 10. Each button control should have an access key defined. 2 PROJECT #1 REQUIREMENTS 11. Ensure the proper tab order is set as follows: 12. Once you are done with the final design of the form layout then lock all the controls. 13. In the code, add the following comment lines at the top of the file. Replace the with the appropriate information. //Project: Project #1 //Programmer: 14. In the code, represent the county tax rate (0.02) and the state tax rate (0.04) as named constants. Use the named constants in the mathematical statements. 15. The Calculate button should use the amount from the Total Monthly Sales textbox to calculate and display the County Sales Tax, State Sales Tax and Total Sales Tax. The display amounts should be formatted to currency with two decimal places. If the user fails to enter numeric values, display an appropriate error message and do not attempt to perform the calculations. A Try-Catch block should be used to catch any invalid data entered for the Total Monthly Sales. 16. The Clear button should clear the textbox and all the calculated sales tax labels. It should then set the focus back to the textbox control. 17. The Exit button should cause the application to end. 3 PROJECT #1 REQUIREMENTS 18. Use the following test data to determine whether the application is calculating properly. Total Monthly Sales Taxes Amount 9500 County Sales Tax $190.00 State Sales Tax $380.00 Total Sales Tax $570.00 5000 County Sales Tax $100.00 State Sales Tax $200.00 Total Sales Tax $300.00 15000 County Sales Tax $300.00 State Sales Tax $600.00 Total Sales Tax $900.00

Solutions

Expert Solution

Module main ()
      
    Declare Real totalSales
    Declare Real countyTax
    Declare real stateTax
    Declare Real totalTax

   
      
    Call inputData(totalSales)
    Call calcCounty(totalSales, countyTax)
    Call calcState (totalSales, stateTax)
    Call calcTotal (totalSales, countyTax, stateTax, calctotal)

End Module
  
Module inputData(Real Ref totalSales)
    Display “Enter the total sales for the month.”
    Input totalSales
End Module


Module calcCounty(Real totalSales, Real Ref countyTax)
countyTax = totalSales * .02
­­­­­­­­­­­End Module

//this module calculates state tax
calcCounty(Real totalSales, Real Ref totalTax)
totalTax = totalSales * .06

End Module

//this module calculates total tax
Module calctotal real ref totalSales real stateTax real countyTax
calcCounty(Real totalSales, Real Ref totalTax)
totalTax = totalSales * .06

End Module

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

End Module


Related Solutions

Monthly Sales Tax A retail company must file a monthly sales tax report listing the total...
Monthly Sales Tax 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 5 percent and the county sales tax rate is 2.5 percent. Write a Python program with function(s) that asks the user to enter the total sales for the month. Make sure that you do not allow user to enter negative values for the total...
Monthly Sales Tax Program A retail company must file a monthly sales tax report listing the...
Monthly Sales Tax 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 a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of state sales...
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.
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 5 percent and the county sales tax rate is 3 percent. Create a GUI application that allows the user to enter the total sales for the month into a text field. From this figure, the application should calculate and display the following: The number of county sales tax...
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.
C programming Monthly Sales Tax 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 a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of...
A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.
make it in C++ with pointerA retail company must file a monthly sales tax report listing the sales for the month andthe amount of sales tax collected. Write a program that asks for the month, the year,and the total amount collected at the cash register (that is, sales plus sales tax). Assumethe state sales tax is 4 percent and the county sales tax is 2 percent.If the total amount collected is known and the total sales tax is 6 percent,...
A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.
Must be done in Visual StudiosA retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, sales plus sales tax). Assume the state sales tax is 4 percent and the county sales tax is 2 percent.If the total amount collected is known and the total sales tax...
Winfield Company operates a retail store a) Below is a table containing monthly sales and sales...
Winfield Company operates a retail store a) Below is a table containing monthly sales and sales staff compensation, in dollars for the previous year. Use the high-low method to create an equation in the form Y = a+ bX to describe the behavior of sales staff compensation. Month Comp Sales 1 412,700 1,808,000 2 386,000 1,659,000 3 359,700 1,512,000 4 346,500 1,138,000 5 359,400 1,218,900 6 341,000 1,233,000 7 366,500 1,409,300 8 364,200 1,437,000 9 400,100 1,616,600 10 443,000 1,833,000...
Stine Co. is a retail store operating in a state with a 6% retail sales tax.
Stine Co. is a retail store operating in a state with a 6% retail sales tax. The retailer may keep 2% of the sales tax collected. Stine Co. records the sales tax in the Sales account. The amountrecorded in the Sales account during May was $148,400. 99. The amount of sales taxes (to the nearest dollar) for May isa. $8,726. b. $8,400. c. $8,904. d. $9,438.The amount of sales taxes payable (to the nearest dollar) to the state for the...
Vaughn Co. is a retail store operating in a state with a 7% retail sales tax....
Vaughn Co. is a retail store operating in a state with a 7% retail sales tax. The retailer may keep 2% of the sales tax collected. Vaughn Co. records the sales tax in the Sales Revenue account. The amount recorded in the Sales Revenue account during May was $747930. The amount of sales taxes payable (to the nearest dollar) to the state for the month of May is $37307. $47951. $51310. $61874.
A retail sales tax on remote sellers will produce as much revenue as a use tax...
A retail sales tax on remote sellers will produce as much revenue as a use tax on in-state purchasers. T/F
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT