代写BUSINESS 1401 Foundations of Information Systems Winter 2024代做Python编程

- 首页 >> C/C++编程

BUSINESS 1401

Foundations of Information Systems

Winter 2024

Python Assignment

Due: April 9, 2023, 11:59 pm

Important notes:

For each task below, you are required to write a Python program and save it in separate files.

Make sure to add comments to your codes.

Your program should be executed with the specified values, and you must save a screenshot of the results to a Word file.

Additionally, in your Word file, you should explain the lines of code used in your program.

It is essential that you use the covered material to create your codes.

Please note that you should submit the Word file and all of your program files saved as .py files. Failure to submit program files or submitting incorrect files will result in a loss of points for your Word file.

Please be aware that this is an individual assignment, and you must submit your own work that is done based on your personal study.

Task 1 – Displaying Information (10 points)

Write a program that calculates the future value of an investment given an initial balance and an annual interest rate compounded monthly. Your program should prompt the user for the initial balance and interest rate and print out the balance after the first four months in a table format.

Save your file as "YourLastName_Interest.py" (e.g., "Farivar_Interest.py").

Here's an example to print your result:

Assume the initial balance is $2000 and the annual interest rate is 4%. Your program should output the balance after the first four months in a table like this:

Task 2 – Paycheck for Employees (15 points)

You need to write a program that prints monthly paycheck for an employee.

The program should read the name and salary (hourly rates), as well as the total number of hours worked in the past month. Make sure that your program accepts fractional hours. Then the program should calculate the pay. If the employee is worked more than 160 hours per month, then they overtime work (over 160 hours) should be paid at 150 percent of their regular wage. Additionally, all employees are subject to a 10% tax deduction on their gross pay.

Save your file as your “YourLastName_Pay”.py (e.g., Farivar_Pay.py)

Use these values and print the outputs:

Employee name: your name

Hourly rate: $15

hours= 175

Sample output:

Task 3– Rate Conversion (20 points)

You should write a program that can convert the Canadian dollar to US Dollars. The program should first read today’s price for one CAD in US Dollars; and then should read the values (in CAD) that you want to convert to USD.

Save your file as your “YourLastName_conversion”.py (e.g., Farivar_Conversion.py)

Use these values and print the outputs:

conversion rate: Search it on google. (e.g., on March 20, 2023, google shows 0.72; i.e., 1 CAD is 0.72 USD)

CAD values: 1; 1000; 2000; 0

Sample output:

Task 4– Simple Visual (25 points)

Create a program that asks the user to enter today’s sales (integer values) for an unlimited number of stores, only stopping when the user enters the word Exit.

For every entry, the app must display a bar chart representing each store’s sales. The bar chart will be made of asterisks (*) symbols, with each asterisk representing $100.

If a sales amount is not an exact multiple of 100 (e.g., 123, 450, 575), then the number of asterisks displayed should be rounded down (e.g., $450 would display four asterisks ****).

Your code must use the following function to display the bar chart:

def print_graph(store_num, store_sales):

o Where store_num is an integer value indicating the current store.

o Where store_sales is today’s sales for a given store.

Save your file as your “YouLastName_SimpleVisual”.py (e.g., Farivar_SimpleVisual.py)

Use these values and print the outputs:100, 450, 500, -1

Task 5 – Zip all your files to PythonByLastName.zip (e.g., PythonByFarivar.zip)

The files you need to submit are:

1. YourLastName_Interest.py

2. YourLastName_Pay.py

3. YourLastName_Conversion.py

4. YourLastName_SimpleVisual.py

5. YourLastName.docx (The word file showing all screenshots of sample outputs and explanations of codes, as well as the plagiarism statement)

Task 6 – Submit in Brightspace by the deadline

The assignment has 100 points. Points of each task are specified above.

The word file has 30 points (screenshots of output and explanations of your codes).

Note: if any program file is incorrect or missing, you will lose its associated points for the screenshot and explanations as well.

Program files: 70 points





站长地图