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
-
Assume a company has two divisions, Division A and Division B. Division A has provided the following information regarding the one product that it manufactures and sells on the outside market:...
-
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.
-
Following is the consolidated statement of comprehensive income for Southwest Airlines for the year ended December 31, 2014: Required 1. Which items were included in comprehensive income? If these...
-
Assume a year has passed and XYZ has improved security by applying a number of controls. Using the information from Exercise 3 and the following table, calculate the post-control ARO and ALE for each...
-
Using the MATLAB script provided (MATLAB script: hdp.m), experiment with setting the values of the concentration parameters for the top level DP \((\alpha)\) and the lower DPs \(\left(\gamma_{1},...
-
Juan Morales Company had the following account balances at year-end: Cost of Goods Sold $60,000; Inventory $15,000; Operating Expenses $29,000; Sales Revenue $115,000; Sales Discounts $1,200; and...
-
The Treasury bill rate (i.e. risk-free rate) is 1.5%, and the expected return on the market portfolio is 15%. Using the capital asset pricing model A. What is the risk premium on the market? B. What...
-
Co B is the issuer of a tranche of mandatorily redeemable convertible preference shares (MRCPS) that was issued on the following terms: Required 1. Identify the elements included in the MRCPS. 2....
-
. amends his sales book at that time in front of the supervisor, and the items are packaged and given to the customer. Credit sales A credit sale must be approved by the supervisor from a list of...
-
On March 1, 2024, Wildhorse Insurance received $5,280 cash from Pronghorn Co. for a one-year insurance policy. Wildhorse Insurance has an October 31 fiscal year end and adjusts accounts annually....
-
1.A car loan of $15,231.06 to be repaid with end of month payments of $275.93. If interest is 9% compounded monthly, how long is the term of the loan? states your answer in years and months from 0 to...
-
HKMASK Manufacturing is considering the introduction of a facial mask. To determine a selling price, the company has gathered the following information: Required: Number of units to be produced and...
-
- 2. What is the resistance of each of the following resistors (using the resistance bands)? Show your work.
-
Nonmonetary Asset Exchanges O O O X and Y exchange buildings / no commercial substance In addition, Y pays X $2,125 Information on building surrendered by each company: Historical cost Accumulated...
-
Who should pay the medical expenses of an individual who is the subject of a multiple support agreement?
-
Assume that a trial balance is prepared with an account balance of $21,360 listed as $21,630 and an account balance of $1,500 listed as $15,000. Identify the transposition and the slide.
-
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?
-
Correctly apply the order of operations to compute the following: \(13+3^{4} \times 8 / 6 \times 5^{2}-3 \times 4\)
-
Banks and credit cards often base their interest on the average daily balance of an account, which is the average of the balance from each day of the period. The account balance of Jada's checking...
-
Use your calculator to calculate (-77)/(-11). Explain how the answer agrees with what was expected.
Study smarter with the SolutionInn App