Make a program that calculates the amount of money

Assignment Help Business Management
Reference no: EM131774158

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.

Reference no: EM131774158

Questions Cloud

Resign and move to halifax : If accepted, she will resign and move to Halifax, Nova Scotia. Pippa has assembled the following data to make the decision:
Calculate percentage difference in level of potential output : Suppose real GDPs in country A and country B are identical at $10 trillion dollars in 2005. Suppose country A's economic growth rate is 2% and country B's.
Prepare the journal entry to record the acquisition of land : The land was recently appraised at $85,000. The Common Stock is actively traded at $40 per share. Prepare the journal entry to record the acquisition of land
Supply-chain management on nationality of goods-services : What is the impact of global operations and supply-chain management on the “nationality” of goods and services?
Make a program that calculates the amount of money : 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
Prepare journal entry to record the purchase of this truck : The market rate of interest for obligations of this nature is 10%. Prepare the journal entry to record the purchase of this truck
What are the equilibrium price and quantity of cds : Suppose that in a recent market period, an industry-wide survey determined the following relationship between the price of CD and the quantity supplied.
Problem from current or past workforce experience : Identify a management issue/problem from a current or past workforce experience where there can be improvement to increase efficiency, communications or process
Prepare a bank reconciliation for the month of october : The Fitzgerald Company maintains a checking account at the Bank of the North. Prepare a Bank reconciliation for the month of October

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd