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.:- M92582840
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Business Management

Using the hershey blanchard model which leadership style do

Using the Hershey Blanchard Model, which leadership style do you feel would be most appropriate for this scenario? Justify your response. Which level of employee readiness is this employee at? • You have recently been ma ...

How would you define the ideal organizational

How would you define the ideal organizational culture?

1 what are some reasons why on-the-job training ojt can

1) What are some reasons why on-the-job training (OJT) can prove ineffective? What can be done to ensure its effectiveness? 2) Explain how technology has changed the learning environment. Please list sources

Suppose you need to pay your air-ticket of 2400 for a

Suppose you need to pay your air-ticket of $2400 for a European trip in 12 months. If you deposit money now, you can earn 7% per annum with a 50% probability, 6% with a 25% probability and 8% with a 25% probability. How ...

What are main forms or limitations of households to engage

What are main forms or limitations of households to engage in self insurance in a country

Writea c functionnbspescapechar s char tnbspthat converts

Writea C function escape(char s[], char t[]) that converts the characters newline and tab into two character sequences n and t as it copies the string t to the string s. Use the C switch statement. Also write the reverse ...

Discuss whether you can subclass a singleton class or not

Discuss whether you can subclass a Singleton class or not. If you can, do the implementation and submit the code (in java)

Interpupillary distance ipd is the distance between the

Interpupillary distance (IPD) is the distance between the centers of the pupils of person's left nd right eyes. In adult males IPD is approximately Normally distributed with a mean of 62.5 mm and a standard deviation of ...

If i had to collect and assess the quality and

If I had to collect and assess the quality and appropriateness of data held by a large, multi-national organization. What steps should I take? How would I address network, security, and ethical considerations when decidi ...

Do you all think that fear of retaliation may affect

Do you all think that fear of "retaliation" may affect decisions by individuals in today's health care organizations? Do you all think that some of the specialized areas of expertise i.e. surgical areas, may have some in ...

  • 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