Question: Please write program in C + + A chessboard has 6 4 squares on it . On day 1 , you place 1 penny on

Please write program in C++
A chessboard has 64 squares on it. On day 1, you place 1 penny on the 1 st square,
double that on square 2(2 cents) for a total of 3 cents. Day 3dots... double the prior day's
penny count (4 pennies) for a total of 7 cents. Day 4.. double the prior day's penny
count (8) for a total of 15 cents.
On which day will you be a millionaire?
Your solution should have a column labeled "Day" and another labeled "Total".
on each line, under the headings, show the day number and total money you'll have.
Once you've reached $1M, you can stop the display and simply write a line below
indicating "I am a millionaire on day number (dayNum)"
Please write program in C + + A chessboard has 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!