Question: can you please make two trace table providing 2 different inputs to the following algorithm please... 1.read (decimal); 2.binary = 0; place - 1; rem

 can you please make two trace table providing 2 different inputs

can you please make two trace table providing 2 different inputs to the following algorithm please...

1.read (decimal); 2.binary = 0; place - 1; rem = 0; 3.while (decimal > 0) do 3.1 rem decimal % 2; 3.2 binary = (rem * place) + binary; 3.3 place place * 10; 3.4 decimal decimal / 2; 4. wend 5. write('Binary =' binary) 6. end

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!