1. Identify the body of the following loop structure and count the number of times it will be executed. What happens if the test is changed to read “(Count != 6)”? Count = 1 while (Count != 7):...



1.
Identify the body of the following loop structure and count the number of times it will be executed. What happens if the test is changed to read “(Count != 6)”?


Count = 1


while (Count != 7):


print(Count)


Count = Count + 3



2.
What problems do you expect to arise if the following program is implemented on a


computer? (Hint: Remember the problem of round-off errors associated with floating-point


arithmetic.)


Count = one_tenth


repeat:


print(Count)


Count = Count + one_tenth


until (Count == 1)








Dec 09, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here