Question: The program should use two different functions. Salary Options: You are offered two salary options for a fixed number of days. Option 1: $100 per
Salary Options: You are offered two salary options for a fixed number of days. Option 1: $100 per day. Option 2: $1 the first day, $2 the second day, $4 the third day, and so on, with the amount doubling each day. Determine which option pays better. More specifically, write two functions, option 1 and option2, that will calculate and return the amount of money based on a single integer argument, the number of days worked. Your program should ask the user to enter from the keyboard the number of days worked. It should call each function and store those results to wages1 and wages2. Both of those should be printed to the screen. Finally, your program should print out which option is better
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
