A small consulting company ECN have decided to hire you. When you go to the office of the human resources to complete new employee’s paperwork, you are presented with two salary offers and told that, before you start working, you must decide which one offers you would accept. After looking at the two salary offers, you decide to write a program to help you make the best choice. The two salary offers are: Salary 1: Salary of $117.23 per day for 10 days. Salary 2: Calculated as follows: first day: $1.15, second day: $2.30, third day: $4.60, and so on, with the amount doubling each day up to the 10th day. Part A: Perform a mathematical hands-on calculations first that shows the values for salary 1 and salary 2 respectively for the ten days. Part B: Now, write a program with the following requirements:. A main function to hold the inputs, outputs, and pass them if and where needed A function to calculate salary 1 and pass the total to another function called “comparison” A function to calculate salary 2 and pass the total to the same function created in step 2. The functions mentioned in steps 2 and 3 should perform the salary [total] comparisons and pass the best option to another function called “Names”. The “names” function holds your names (last and first names) which will be passed to the display function. The function display will then print the result (best salary offer for you to choose) including your names. For example: John Doe hiring salary is $98.50. Compiled output: should provide the following: If salary 1 is higher than salary 2 or vice versa, your output should display salary 1 in amount of $__ formatted in two decimal spaces. If salary 2 is higher than salary 1 or vice versa, your output should display salary 2 in amount of $__ formatted in two decimal spaces. You must use the necessary relational operators to show the comparison relationship between the two salaries in step 1 or 2 above. Python
A small consulting company ECN have decided to hire you. When you go to the office of the human resources to complete new employee’s paperwork, you are presented with two salary offers and told that, before you start working, you must decide which one offers you would accept. After looking at the two salary offers, you decide to write a
The two salary offers are:
Salary 1: Salary of $117.23 per day for 10 days.
Salary 2: Calculated as follows: first day: $1.15, second day: $2.30, third day: $4.60, and so on, with the amount doubling each day up to the 10th day.
Part A: Perform a mathematical hands-on calculations first that shows the values for salary 1 and salary 2 respectively for the ten days.
Part B: Now, write a program with the following requirements:.
- A main function to hold the inputs, outputs, and pass them if and where needed
- A function to calculate salary 1 and pass the total to another function called “comparison”
- A function to calculate salary 2 and pass the total to the same function created in step 2.
- The functions mentioned in steps 2 and 3 should perform the salary [total] comparisons and pass the best option to another function called “Names”.
- The “names” function holds your names (last and first names) which will be passed to the display function.
- The function display will then print the result (best salary offer for you to choose) including your names. For example: John Doe hiring salary is $98.50.
Compiled output: should provide the following:
- If salary 1 is higher than salary 2 or vice versa, your output should display salary 1 in amount of $__ formatted in two decimal spaces.
- If salary 2 is higher than salary 1 or vice versa, your output should display salary 2 in amount of $__ formatted in two decimal spaces.
- You must use the necessary relational operators to show the comparison relationship between the two salaries in step 1 or 2 above.
Python
Step by step
Solved in 4 steps with 1 images