Question: 3 ) Problem: Students in class don't know each other. Algorithm: ( 1 ) Have each student turn to left. ( 2 ) Have student

3)
Problem: Students in class don't know each other.
Algorithm:
(1) Have each student turn to left.
(2) Have student introduce themselves.
(3) Have each student face forward again.
4)
Problem: A stack of 1000 name tags is unsorted but should be sorted.
Algorithm:
(1) Remove one tag, start a new stack.
(2) Remove another tag, place in sorted order in new stack.
(3) Repeat step 2 until no tags remain in original stack.
5)
Problem: A stack of 1000 name tags is unsorted but should be sorted.
Algorithm:
(1) Start 26 new stacks for names starting with A, B,..., Z.
(2) Remove one tag, place in appropriate new stack, in sorted order in that stack.
(3) Repeat step 2 until no tags remain in original stack.
(4) Stack the 26 stacks into one stack in sorted order.
6)
Problem: Values for variables x and y should be swapped.
Algorithm:
(1) Copy y's value into x.
(2) Copy x's value into y.

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!