Question: Please use Matlab to program. Prob 3. 20pts A 7-story building has different numbers of offices on each floor. They are numbered sequentially from Room
Please use Matlab to program.

Prob 3. 20pts A 7-story building has different numbers of offices on each floor. They are numbered sequentially from Room l' for the first office on the first floor to Room N' for the last office on the top floor, where N is the total number of offices in the building. Develop an algorithm to accept a 7-element vector and a room number as inputs to determine which floor and which office that room is. The vector indicates the number of offices on each floor. Trace your algorithm with [6 10 14 11 12 15 8] and 'Room 60'. Prob 3. 20pts A 7-story building has different numbers of offices on each floor. They are numbered sequentially from Room l' for the first office on the first floor to Room N' for the last office on the top floor, where N is the total number of offices in the building. Develop an algorithm to accept a 7-element vector and a room number as inputs to determine which floor and which office that room is. The vector indicates the number of offices on each floor. Trace your algorithm with [6 10 14 11 12 15 8] and 'Room 60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
