Question: Assignments > Lab 5 Lab 5 Hide Assignment Information Instructions Instructions: Open the terminal and using vi / vim create a new script and name

Assignments > Lab 5
Lab 5
Hide Assignment Information
Instructions
Instructions:
Open the terminal and using vi/vim create a new script and name it lab5.txt
In this lab you will create a script to figure out the Federal tax rate of an individual based on the income.
Create a function displayTaxRate 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 for single individual according to the following table:
Income
Tax
Rate
$0 to $11,000,10%
$11,001 to
Assignments > Lab 5 Lab 5 Hide Assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!