Question
A zombie picks up a calculator and starts adding odd whole numbers together, in order: 1 + 3 + 5 + etc. What will be
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started