Received a programming job offer

Assignment Help Other Subject
Reference no: EM13271401

You just received a programming job offer from a local startup company. It is a guaranteed one year position (52 weeks) but it has a peculiar wage offer. For the first week, you will be paid one cent. For week 2, you will be paid 2 cents; 4 cents for week 3; 8 cents for week 4 – and the pay keeps doubling every week until the end of the contract. So at the end of week one, you will have been paid 1 cent; at the end of week two, 3 cents (2 + 1 cents); at the end of week three, the total will be 7 cents (4 + 3 + 1) and so on. Write a program that implements two recursive methods: one that given the week number, it will report the amount to be paid for that week (i.e. week 10 pays $10.24); and second method that reports the total amount paid to date given the week number (i.e. by the end of week 8, $5.11 has been paid in total) . The method should repeatedly ask the user to provide the number of weeks and report the results of the two recursive methods. If the user enters 0 weeks, the program will terminate.

Reference no: EM13271401

Questions Cloud

Determine the apparent thickness of the plate : A flint glass plate (n = 1.66) rests on the bottom of an aquarium tank. Calculate the apparent thickness of the plate as viewed from above the water
Mobile data terminals afis live scan facial recognition : Mobile data terminals AFIS Live scan Facial recognition Iris scan Positive effects of new technologies on communication Negative effects of new technologies on communication A discussion about which new specialized technologies you might want to use ..
Find the sample space for the experiment : Find the sample space for the following experiment: Drawing bolts from a lot of 20, containing one defective D, until D is drawn, one at a time and assuming sampling without replacement, that is, bolts drawn are not returned to the lot.
Determine the force acting on the electron : What is the force acting on the electron (magnitude and direction) ? What is the electric field (magnitude and direction ) at the point where the electron is located
Received a programming job offer : You just received a programming job offer from a local startup company. It is a guaranteed one year position (52 weeks) but it has a peculiar wage offer. For the first week, you will be paid one cent.
Explain what volume of naoh would need to add acetic acid : What volume of 1 M NaOH would you need to add to 200 mL of 0.2 M acetic acid solution to achieve a pH of 7.0 (the pKa of acetic acid is 4.76)? A)0.23 mL B)6.952 mL C)173.8 mL D)39.77 mL
Determine final equilibrium temperature and total entropy : A 20kg of aluminum block initially at 80C is dropped into an insulated tank that contains 120 liter of water at 25C. Determine the final equilibrium temperature and the total entropy change for this process.
Explain use the bohr model to calculate the wavelength : Use the bohr model to calculate the wavelength of the light emitted when the electron in a hydrogen atom falls from the = 5 shell to the = 3 shell
An appropriate digital output to a computer : Devise a signal-conditioning system that will provide an appropriate digital output to a computer. Specify the requirements on the ADC and appropriate analog signal conditioning to interface to your ADC.

Reviews

Write a Review

Other Subject Questions & Answers

  Integrative negotiation

What are the factors in integrative negotiation that make it difficult to achieve an agreement?

  Government role on private lives

What role should local government have on the lives of its citizens? How much control or influence should local government have in the lives of its citizens?

  Describe maya anagelou-s unique patterns or traits

Choose two different theories of personality and apply them to selected figure, and reply the following question: How does each theory vary in terms of how it describes Maya Anagelou's unique patterns or traits?

  Organization departmentalize their jobs

How does your organization departmentalize their jobs? Some organization is multiple combinations of the basic 4 groupings. Do you think it is possible to orgainize any organization; busines, non-profit, educational ect. by one or more of those basic..

  How is medical care financed

How is medical care financed? Do some people pay more or less than their fair share? It doesn't need to be more than 200 words.

  Which process completes second and why

Process 1 with a run time of 40 seconds, a priority of 1, and it will require 20 seconds of I/O after 20 seconds of execution. Process 2 with a run time of 15 seconds and a priority of 2. Process 3 with a run time of 25 seconds, a priority of 2.

  Maturity of the bonds

Consider the Leverage Unlimited, Inc., zero coupon bonds of 2008. The bonds were issued in 1990 for $100. Determine the yield to maturity (to the nearest 1⁄10 of 1 percent) if the bonds are purchased at the

  Gay-lesbian-bisexual and transgender

Women's rights organizations, Equality organizations, Gay, lesbian, bisexual, and transgender (GLBT) rights organizations.

  Empirical evidence for the knowledge or belief

Give 3 pieces of empirical evidence for the knowledge or belief, as well as 3 logical reasons.

  Fuel cells produce energy from hydrogen

Fuel cells produce energy from hydrogen by

  Occurs midway in series of numbers-middle case

What term refers to the value that occurs midway in a series of numbers (that is, the middle case)?

  Describe some of the problems with the researcher claim

In a small, fictitious country, a researcher has found that the higher a person lives up the big mountain, the more intelligent the individual is. Evaluate if there is a problem with the researcher claiming that living high on the mountain leads t..

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