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

Information Technology Project Management
9th Edition
ISBN:9781337101356
Author:Kathy Schwalbe
Publisher:Kathy Schwalbe
Chapter12: Project Procurement Management
Section: Chapter Questions
Problem 4QQ
icon
Related questions
Question

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:.

  1. A main function to hold the inputs, outputs, and pass them if and where needed
  2. A function to calculate salary 1 and pass the total to another function called “comparison”
  3. A function to calculate salary 2 and pass the total to the same function created in step 2.
  4. The functions mentioned in steps 2 and 3 should perform the salary [total] comparisons and pass the best option to another function called “Names”.
  5. The “names” function holds your names (last and first names) which will be passed to the display function.
  6. 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:

  1. 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. 
  2. 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.
  3. You must use the necessary relational operators to show the comparison relationship between the two salaries in step 1 or 2 above.

Python 

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Information Technology Project Management
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning