Question: Please solve it in python coding. Write a function that will calculate the amount of state tax owed when an annual income in dollars is

 Please solve it in python coding. Write a function that willPlease solve it in python coding.

Write a function that will calculate the amount of state tax owed when an annual income in dollars is passed to the function. The tax for our state is calculated as follows: 3% if annual income is $15,000 or less $450 plus 4.9% of any amount greater than $15,000 Write a function that will read a list of ID and name combinations from the file ids.txt. You should add all the digits of the ID and assign a team number to the person based on the remainder when divided by 6. The person's name without ID number and the team number should be written to an output file. The function should return the number of persons assigned to each team. Ex: 850000111 Cubley, Mike Would be assigned team number 4 and the output written to the file would be: Cubley, Mike Team: 4 There will be an unknown number of lines in the input file. Using a lambda function, sort the following list based on the middle character of the string. stList = ('abc', 'michael', 'bob', (timothy') print the sorted list when finished

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 Databases Questions!