Question: What problems may arise if the following program is implemented on a computer? (Hint: Remember the problem of round-off errors associated with floating-point arithmetic.) one_tenth
What problems may arise if the following program is implemented on a computer? (Hint: Remember the problem of round-off errors associated with floating-point arithmetic.)
one_tenth = 1.0 / 10.0
count = one_tenth
repeat:
print( Count )
Count = Count + one_tenth
until ( Count == 1 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
