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.

Please use Matlab to program. Prob 3. 20pts A 7-story building has

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!