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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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