Question: This logic is something you should know if you ever find yourself in the position of negotiating a salary. Develop an IPO chart and pseudocode

This logic is something you should know if you ever find yourself in the position of negotiating a salary. Develop an IPO chart and pseudocode for a problem called "Pennies For Pay". The basic premise for the program is that if you can get an employer to start you on Day 1 with 1 penny and then the employer agrees to double the penny each day, you will get rich quickly. You want to code the logic for how much money the user will be making in pennies and dollars for each of the days chosen by the user, and how much the user will make if the user sums up the total dollars for the number of days chosen by the user. . Please see the below for how the program will run for a test period of 30 days: For how many days will you work? 30 MM M Day Pennies MMM 1 1 MMM 2 2 MMM 3 4 MMAM 4 8 MMAM 16 MMAM 6 32 MMM 7 64 MMAM 8 128 MMM 9 256 MMAM 10 512 MMAM 11 1,024 MMAM 2,048 MMAM 13 4,096 MMAM 8,192 MMAM 15 16,384 MMAM 16 32,768 MMAM 17 65,536 MMAM 18 131,072 MMM 19 262,144 MMAM 20 524,288 MMAM 21 1,048,576 MMAM 22 2,097,152 MMAM 23 4,194,304 12 Dollars 0.01 0.02 0.04 0.08 0.16 0.32 0.64 1.28 2.56 5.12 10.24 20.48 40.96 81.92 163.84 327.68 655.36 1,310.72 2,621.44 5,242.88 10,485.76 20,971.52 41,943.04 14 33,554,432 MMAM 27 67,108,864 MMM 28 134,217,728 MMAM 268,435,456 MMAM 30 536, 870,912 MM*Mtotal pay: $10,737, 418.23 335, 544.32 671,088.64 1,342,177.28 2,684,354.56 5,368, 709.12 29 MMOM As you can see the user will be asked to enter the number of days they expect to work as input. You need to validate the days with a while loop to ensure that the days is not less than 1 day. To create the table, you will nee to display the headings shown which are Day, Pennies, Dollars, and then within a counter controlled while loop, y will display the day, pennies earned, and dollars earned that day for up to the number of days the user wants to work. You will need mathematical calculations to convert pennies to dollar, and to accumulate the Total Pay that appears after the loop is ended. You have to decide where the mathematical calculations need to go in order for program to run correctly. Requirements: 2 loops are needed in this program and you can not write your logic for only 1 days worth of data. The logic for calculating and displaying the pennies and dollars must be inside the loop. Whereas the logic for displaying the Total Pay should be outside of the loop. Hint: You should look at the bear cubs problem for ideas. Please submit an IPO chart and Pseudocode. You can use a text editor or Word (be sure to single space) or even Excel but be sure to single space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
