A zombie picks up a calculator and starts adding odd whole


A zombie picks up a calculator and starts adding odd whole numbers together, in order: 1 + 3 + 5 + ? etc. What will be the last number the zombie will add that will make the sum on his calculator greater than 10,000? Your task is to write the MATLAB code necessary to solve this problem for the zombie or he will eat your brain. The user should be asked to enter the target number (10,000), although your code should be written in such a way that if a target number other than 10,000 is entered, the correct answer for the value entered will be determined.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: A zombie picks up a calculator and starts adding odd whole
Reference No:- TGS02241622

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)