Create a function display Tax Rate that will: . Ask the user to enter the income...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a function display Tax Rate that will: . Ask the user to enter the income and store it in a variable named income. •Using an if/elif statement, read the value of the variable income and display the corresponding tax rate according to the following table: Income $0 to $10,275 $10,276 to $41,775 $41,776 to $89,075. $89,076 to $170,050. $170,051 to $215,950. $215,951 to $539,900. $539,901 or more. TOW UI ar Individual based on the income. Tax Rate 10% 12% 22% 24% 32% 35% 37% 4 • Display a menu with the following options: 1- Get Tax Rate, 2-Quit . If the user enters 1, invoke the display Tax Rate function. . If the user enters 2, exit the script. . If the user enters anything else, display an error message. • Use a while loop to continue the script until the user select the option to Quit Save the script and make it executable (HINT: use the chmod command with mode 755) . In the body of the script, at the bottom of the file provide code to: Create a function display Tax Rate that will: . Ask the user to enter the income and store it in a variable named income. •Using an if/elif statement, read the value of the variable income and display the corresponding tax rate according to the following table: Income $0 to $10,275 $10,276 to $41,775 $41,776 to $89,075. $89,076 to $170,050. $170,051 to $215,950. $215,951 to $539,900. $539,901 or more. TOW UI ar Individual based on the income. Tax Rate 10% 12% 22% 24% 32% 35% 37% 4 • Display a menu with the following options: 1- Get Tax Rate, 2-Quit . If the user enters 1, invoke the display Tax Rate function. . If the user enters 2, exit the script. . If the user enters anything else, display an error message. • Use a while loop to continue the script until the user select the option to Quit Save the script and make it executable (HINT: use the chmod command with mode 755) . In the body of the script, at the bottom of the file provide code to:
Expert Answer:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these accounting questions
-
You will design and implement your own data class. The class will store data that has been read as user input from the keyboard (see Getting Input below), and provide necessary operations. As the...
-
In the following reaction, choose the two correct starting materials from (a)-0). 40 "C, THF Br (a) (b) o (c) (d) (e) OHC -Ph Br Br Br Ph O Ph O O Ph (g) () Br- P-Ph (h) Ph Ph Ph Ph Ph Ph Ph Ph Ph Ph...
-
Someone once commented that advertising is Americas greatest export. Discuss.
-
Atomic Tackle Shop's accounting records yield the following data for the year ended December 31, 2017: Inventory: January 1, 2017 ................................... $ 24,000 Purchases of inventory...
-
If there is an alteration in the price of an input used to produce a good, why is that a change in supply when an alteration in the price of the good itself is a change in the quantity supplied?
-
The activity of the component is defined as the ratio of (a) The fugacity of the component in the solution to the fugacity of the component in the ideal state (b) The fugacity of the component in the...
-
You are the audit manager for Ken- Ron Enterprises. Your firm has been the entitys auditor for 15 years. Your firm normally uses a range of 3% to 5% of income before taxes to calculate overall...
-
You would like to know the thickness of a syrup film as itdrains at a rate of 1 gpm down a flat surface that is 6 in. wideand is inclined at an angle of 30 from the vertical. The syrup hasa viscosity...
-
Ramada Company produces one golf cart model. A partially complete table of company costs follows: Required: 1. Complete the table. 2. Ramada sells its carts for $1,200 each. Prepare a contribution...
-
Continuous compound interest can be calculated using the formula A(t) = Pe rt , where P is the initial amount and A(t) is the value after time t at interest rate r (as a decimal). (a) When Angela was...
-
From this ratio analysis please explain the condition for Walmart Company.(Explain each ratio for Walmart Company) Financial Ratios Debt Management Ratios: Debt Ratio Debt to Equity Days Payables...
-
Calculate the maximum price that an investor with the assumptions made in the model should be willing to pay for that property. Show this maximum price in cell C8. b. If you expect a general increase...
-
1. The payroll of Yellow Stone Company for September 2025 is as follows (6 points). Total payroll was $500,100, of which $100.000 is paid to certain employees who had earned more than $142,800 by the...
-
. Assume steady-state before the switching operation (t = 0-), and steady-state a long time after the switching (t = ). Find: a) i(0), vc(0), and VR1 (0+) (3 points) b) di (0+)/dt, and dvc (0+)/dt (4...
-
3. Suppose you and your friends look up the prices and quantities of Ramen noodles consumed in the U.S. over the last 10 years. (See figure below.) Your friend Timmy claims this traces out the demand...
-
ABC,. Inc just paid a dividend of $21.65. The dividends are expected to grow by 20% in Years 1-4. After that, the dividends are expected to grow by 5% each year. If the required rate of return is...
-
Prairie Outfitters, Inc., a retailer, accepts paymnent through credit cards. During August, credit card sales amounted to $12,000. The processor charges a 3% fee. Assuming that the credit card...
-
This is a named storage location in the computers memory. a. Class b. Key word c. Variable d. Operator
-
Suppose you wanted to display the text Click Here as a link to the Web site http://java.sun.com. What statement would you write to create the text?
-
How do you add a layout manager to a container?
-
What is the difference between old classical and new classical economics?
-
What is the difference between traditional Keynesian and new Keynesian economics?
-
Why does monetary policy operate with a long and variable lag? Give an example to illustrate your explanation.
Study smarter with the SolutionInn App