BUSINESS 1401 B Foundations of Information Systems Fall 2022 Python Assignment Due: Dec. 2, 2022– 05:00 pmYou should write a Python program for each task below and save it in separate files....

1 answer below »
Task 1-5


BUSINESS 1401 B Foundations of Information Systems Fall 2022 Python Assignment Due: Dec. 2, 2022– 05:00 pm You should write a Python program for each task below and save it in separate files. You should run your program with specified values and save a screenshot of the code and results to a word file. Your screenshot should show the path directory where you saved your code as shown in the picture below: You should submit the word file and all your program files (save as .py). Note 1: if program files are not submitted or are not correct; you will lose the 10 points of word file Note 2: this is an individual assignment, and you should submit your own work, which is done based on your personal study. You need to add the following statement to your report: PLAGIARISM STATEMENT I certify that this assignment/report is my own work, based on my personal study and/or research and that I have acknowledged all material and sources used in its preparation, whether they be books, articles, reports, lecture notes, and any other kind of document, electronic or personal communication. I also certify that this assignment/report has not previously been submitted for assessment in any other unit, except where specific permission has been granted from all unit coordinators involved, or at any other time in this unit, and that I have not copied in part or whole or otherwise plagiarized the work of other students and/or persons. Full Name: Date: Task 1 – Sample Calculation (20 points) Suppose your yearly salary is 100,000 and tax is 20% of your salary. Your yearly salary increment is 10%. Tax is applied on incremented salary. Write a program that prints the incremented salary and tax after the first year in the following format: Incremented salary: _________ Tax: _________ Save your file as your “last name_task1”.py (e.g., Chowdhury_task1.py) Use these values and print the output: Initial balance= 100000 tax rate= 20% increment=10% Task 2 – If/Else (20 points) You need to write a program that prints monthly paychecks for an employee. The program should read the name and salary (hourly rates) and the total number of hours worked in the past month. Make sure that your program accepts fractional hours. Then the program should calculate the total pay. If the employee has worked for more than 140 hours per month, then the overtime work (over 140 hours) should be paid at 160 percent of their regular wage. The output should show the employee’s name and total pay. Save your file as your “last name_task2”.py (e.g., Chowdhury_task2.py) Use these values and print the outputs: Employee name: your name Hourly rate: $22.95 hours= 165.50 Task 3– Functions (20 points) Write a program that calculates the amount of financial assistance for needy families. The rules are as follows: • If the annual household income is between $30,000 and $55,000 and the household has at least three children, the amount is $1,500 per child. • If the annual household income is between $30,000 and $40,000 and the household has exactly two children, the amount is $1,800 per child. • If the annual household income is less than $30,000, the amount is $1,150 per child. In the program, you should define a function to do the computation. The program should read the household income and number of children and should print the amount of financial assistance. Save your file as your “last name_task3”.py (e.g., Chowdhury_task3.py) Use these values and print the outputs: 1: income=48000; number of children= 3 2: income=35000; number of children= 2 3: income=20000; number of children= 4 Task 4– Loop (20 points) Write a program that takes a number as input, if the input is an even number, then it multiplies the next 20 even numbers with it, if the input is an odd number then it multiplies the next 20 odd numbers with the input value. Print the final result after multiplication. Save your file as your “last name_task4”.py (e.g., Chowdhury_task4.py) Task 5– Loop (20 points) In the following range range=[4,7,14,33,89,23,63,67,84,34,29,73,93,97,3,94,56,98,71,57,82,99,103,11,45,32,49,57,13,4 3,77,55,88,5,23,86,33,54,25,77,121,37,43,30,53,42,134,221,65,56,77,87,312,145,343,234,564,34 7,467,17,33,22] count how many odd numbers are in this range. Print the count, sum, and average of the odd numbers. Save your file as your “last name_task5”.py (e.g., Chowdhury_task5.py) You should submit the word file with screenshots and all your program files (saved as .py).
Answered Same DayDec 01, 2022

Answer To: BUSINESS 1401 B Foundations of Information Systems Fall 2022 Python Assignment Due: Dec. 2,...

Nidhi answered on Dec 02 2022
46 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here