Question: ITP 100 Programming Assignment This logic is something you should know if you ever find yourself in the position of negotiating a salary Develop an


ITP 100 Programming Assignment 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 MMAM Day Pennies MMAM 1 1 MMAM 2 2 MMAM 3 4 MMAM 4 8 MMAM 5 16 MM&M 6 32 MM&M 7 64 MMAM 8 128 MMAM 9 256 MMAM 10 512 MMAM 11 1,024 MMAM 12 2,048 MMAM 13 4,096 MMAM 14 8,192 MMM 15 16,384 MMAM 16 32, 768 MMAM 17 65,536 MMAM 18 131,072 MMAM 19 262,144 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 21 19 262,144 MMM 20 524,288 MMAM 1,048,576 MMAM 22 2,097,152 MM&M 23 4,194,304 MMAM 24 8,388,608 MMM 25 16,777,216 MMAM 26 33,554,432 MMAM 27 67,108,864 MMAM 28 134,217,728 MMAM 29 268,435,456 MMAM 30 536,870,912 MM MTotal pay: $10,737, 418.23 MMM 2,621.44 5,242.88 10,485.76 20,971.52 41,943.04 83,886.08 167,772.16 335,544.32 671,088.64 1,342,177.28 2,684, 354.56 5,368, 709.12 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 need to display the headings shown which are Day, Pennies, Dollars, and then within a counter controlled while loop, you 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 the 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. DO NOT SUBMIT CODE THAT YOU HAVE WRITTEN IN JAVA OR PYTHON OR ANY OTHER PROGRAMMING LANGUAGE OR YOU WILL GET A O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
