question A.... describe it in a paragraph if possible please!!! Outlook Print MA
ID: 3703946 • Letter: Q
Question
question A.... describe it in a paragraph if possible please!!!
Outlook Print MAT 2540 - Writing Assignment 1 For each of the items below, write a paragraph addressing each question. (a) Suppose that you step into an elevator at City Tech. There are 7 people in the elevator (including you) and 3 different buttons have been pushed. What is the largest number of people that you can guarantee will exit the elevator at one of the 3 floors selected? Explain. (b) Explain why 1 +2+3+ (n-1)+n O(n). (c) Describe an algorithm, and write the pseudocode, that computes the Lucas numbers. (See problem 11 in section 8.2). pe here to search DOLLExplanation / Answer
a.) Consider floor numbers are 1,2 and 3. Since buttons are pushed. therefore atleast one person will exit at each floor. So, in best case, 5 people can exit from a floor. But it is not guaranteed. Other possible cases are:
at one floor, 2 people, second - 2 people, third - 3 people
at one floor - 1, second - 2, third -4
first - 1, second - 3 and third 3.
So, in all the cases, minimum 3 people will be the largest number that can be guaranteed to exit from the elevator at one of the 3 floors.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.