Question
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started