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

  Two separate marketing plans

The two separate marketing plans will have two different set of policies which will be difficult for the organization to follow. It would lead to have two different set of goals to be achieved which can lead to cohesion

  Conducting a cost benefit analysis-health care service

What are the advantages of conducting a cost-benefit analysis on a new health care service an insurance company is considering, such as screening for prostate cancer as a covered benefit?

  Explain contemporary woman-shows qualities by d''este

The Courtier, however some women select to assert their higher intellectual abilities. Recognize and explain a contemporary woman who shows qualities advocated by d'Este, Cereta, or Marinella.

  Monetary and fiscal policy

Discuss how monetary and fiscal policy could have been better leveraged to avoid the recession in the early 2000s.  Discuss how supply and demand would be affected under each of the four degrees of competition (pure competition, monopolistic competit..

  Compare and contrast primary and secondary waves

Compare and contrast primary and secondary waves. How are they used to determine the nature of the layers of earth?

  Intended brand message-advertising agency

HP’s advertising agency assembles words and illustrations into an advertisement that will  convey the company’s intended brand message. In the communication process, HP is

  Vygotsky-proximal development

What did Vygotsky say about learning through imitation and its relationship to what he called the Zone of Proximal Development?  Are Vygotsky’s views consistent with what we now know about animal learning?

  Media piece focusing on a current political issue

Do a 10-12 slide powerpoint regarding reaction to a media piece focusing on a current political issue relating to immigration. Possible media pieces include an article, a video or audio clip, a television show, a book, a documentary, or a movie.

  Western industrial powers and traditiona

Do you agree with Michael Parenti when he says, "Imperialism has been the most powerful force in world history over the last four or five centuries, carving up whole continents while oppressing indigenous peoples and obliterating entire civilizations..

  Explain how to create the curious child

The article "How to create the Curious Child" presents methods to aid you regain the curiosity. How might you utilize these methods to help you regain habit of asking.

  Persona of an eastern philosopher

Write down a letter in the persona of an eastern philosopher to one of his pupils. I have chosen Confucius as my eastern philosopher. In the letter I have to describe his viewpoints concerning one of his philosophies.

  Human biases and stereotypes

I've been noticing lately many more "feel good" stories in news, such as the good Samaritans who have turned in backpacks filled with money, or Dairy Queen employee who stood up for his disabled customer

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