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 percent and the county sales tax rate is 2 percent. Create a GUI application that allows the user to enter the total sales for the month into a text field. From this amount, 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)
In the application's code, represent the county tax rate (0.02) and the state tax rate (0.04) as named constants.
The window should be similar to the one displayed below. Note that Calculate County Tax, Calculate Sales Tax, and Calculate Total Sales Tax are buttons.
All input/output should be accepted/displayed in the GUI.
Input Validation: Do not accept unreasonable/junk values, or negative values, which must be rejected and asked for another one.
Monthly Sales Tax Enter the total sales for the month Calculate County Tax Calculate Sales Tax Calculate Total Sales TaxStep 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