Question: write an application using visual basic that calculates net income based on fictitious tax rates that meet the following requirements: Inputs: First name (text box)
write an application using visual basic that calculates net income based on fictitious tax rates that meet the following requirements:
Inputs:
First name (text box)
Last name (text box)
Age (Check Box) (Normally we would use a radio button here, but we are using checkboxes instead to test the ability to work with checkboxes. Make sure you only check ONE text box when testing/debugging your application)Ranges
1-17
18-25
26-35
36-45
46-55
56-65
66 and above
Male / Female (radio buttons)
Marital Status (Radio Button)
Single / Married
Annual Household Income (text box)
MUST error-check input here for numeric values only!
Calculations:
A single person should have a base tax rate of %15 annual income
A married person should have a base tax rate of 10% annual income
Additional tax as follows:
$1 - $20,0000: 0%
$20,001 - $40,000: 4%
$40,001 - $80,000: 7%
$80,001 and above: 9%
Outputs:
Total tax rate
Net pay (Pay minus taxes)
You determine the objects used to display the output (Make sure they are neat and orderly and labeled)
Add a Summary button that does the following:
Display a message box to the user including the following:
Their name as Last Name, First Name, in Upper Case (Even if they entered it in lower case)
Marital Status (Single letter, in upper case)
Annual income (including the $ sign)
Total tax rate
Net pay
A status based on age
1-17 = Youngun
18-25 = Know it all
26-55 = Meh
56 and over = Golden Oldie
Each item of output must be on a separate line and labeled. Here is an example of how the output should look:
Name: DOE, JOHN
Marital Status: M (or S for single)
Annual Income: $26,000
Total Tax Rate: 14%
Net Income: $22,360
Status: Know it all
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
