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:
Count = Count + one_tenth
until (Count == 1)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here