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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education