Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

1. Pennies Doubled

Make a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, and then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.

For example, if the user entered 10 days, your program will display the earnings for each day up to and including the 10th day. The output would be as follows:

Day 1: $0.01

Day 2: 0.02

Day 3: 0.04

Day 4: 0.08

Day 5: 0.16

Day 6: 0.32

Day 7: 0.64

Day 8: 1.28

Day 9: 2.56

Day 10: 5.12

Total earnings: $10.23

Note: The user should be able to perform as many calculations desired without re-executing the program.

Make use of both the 'while' and 'for' loops in your logic.

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92579395
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Business Management

Read the following articlesthe factories of the future

Read the following articles: The Factories of the Future Could Float in Space: https://www.popsci.com/factories-in-space?dom=rss-default&src=syn The Industrial IoT: https://www.cbinsights.com/research/top-startups-iiot/ ...

What is the strategy adopted by breadtalk are they

What is the strategy adopted by BreadTalk? Are they succeeding or failing? Why?

Explain how understanding your personal learning style can

Explain how understanding your personal learning style can assist you when identifying, evaluating and selecting development opportunities.

Recommend the general hiring guidelines and process as a

Recommend the general hiring guidelines and process as a list of minimum of seven steps for a firm to legally current legally flawed process and procedures also add what law or government eight law agency guidelines addr ...

Without a mission or vision statement what is an

Without a mission or vision statement, what is an organization? Without a mission, how can an organization survive? How can a firm have a succession plan? Or can they gain competitive advantage? The mission of an organiz ...

Concentration ratios are typically a firms share of

Concentration ratios are typically a firm's share of domestic production. If the United States engages in more international trade, will such concentration measures lose meaning? Could this effect explain the vanishing o ...

What are some examples of marketing activities that are

What are some examples of "marketing" activities that are associated with the Summer Olympics? How does global marketing and the use of new digital marketing techniques facilitate marketing activities at the Olympics in ...

What are the overall cost leadership differentiation and

What are the overall cost leadership, differentiation, and focus strategies?

How can text effects such as wordart add to or detract from

How can text effects, such as WordArt, add to or detract from the overall message a presentation is trying to convey?

According to firestions tire recall case discuss and

According to Firestion's tire recall case, discuss and evaluate the role of leadership when commercial realities conflict with public concerns, ethical dilemmas that ensue for leaders in such situation and how you sugges ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As