

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Two problems related to integer division using repeated subtraction and code complexity. Problem 1 asks to define a robust algorithm for integer division and implement it in ada95 with exception handling. Problem 2 focuses on calculating the cyclomatic complexity of a code fragment and determining the minimum number of test cases needed. Hints are provided for each problem.
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!
loop exit when Flag := True; if A < 100 and B > 200 then if A > 50 then Sum := Sum +2; else Sum := Sum +1; end if; else if B < 300 then Sum:= Sum -1; else Sum := Sum -2; end if; end if; end loop;
if A < 100 and B > 200 then if A > 50 then Sum := Sum +2; else Sum := Sum +1; end if; else if B < 300 then Sum:= Sum -1; else Sum := Sum -2; end if;
end if;