预定/报价
Python代写|CP1401/CP5639 2022 TR1 Assignment 1
阿叶2024-05-14 11:20:13
留学生作业代写do not hesitate to contact me!
WeChat:lovexc60

Requirements and Expectations:

Ensure that your programs match these, including spacing, spelling, etc. Think of this as helpful guidance as well as training you to pay attention to detail. The sample output is intended to show a full range of situations so you know how the programs should work.

That’s fine.

Program 1 – Pay Calculator:

Learning outcome focus: Input, Processing, Output

File name: a1_1_pay_calculator.py

At Experience Counts, workers get paid based on their level of experience.

Write a program that asks an employee for their number of hours worked and experience level, then displays how much their total pay will be.

There is no limit to an employee’s experience level and no error-checking is required.

The base pay for experience level 0 is $45.00

Each level of experience gives 5% more pay, so experience level 1 is $47.25; experience level 3 is 15% more than the base, or $51.75, etc. You should write your program so that if the base pay were to change, the programmer would only need to change it in one place (that’s what constants are for).

The sample output below shows the currency values displayed with two decimal places, which your program should also do.

Sample Output from 3 different runs:

It should be clear what parts of the samples are user input for all samples in this document.

E.g., in the first example below, the user entered 10 and 3. All of the other parts of the sample were

printed by the program.

Experience Counts Pay Calculator

Number of hours worked: 10

Experience level: 3

Based on your experience level (3):

Your hourly pay rate is $51.75

Your total pay is $517.50

Experience Counts Pay Calculator

Number of hours worked: 40

Experience level: 99

Based on your experience level (99):

Your hourly pay rate is $267.75

Your total pay is $10710.00

Experience Counts Pay Calculator

Number of hours worked: 0

Experience level: 52

Based on your experience level (52):

Your hourly pay rate is $162.00

Your total pay is $0.00