Problem 1 Post Condition Consider Following Code Assume X Real Umber Cons Return P 1 Find Q37059984

Problem 1 Post condition Consider the following code. Assume that x is any real umber. while (in) Cons return P 1. Find two n

Problem 1 Post condition Consider the following code. Assume that x is any real umber. while (in) Cons return P 1. Find two non-trivial loop invariants that involve variables i, and p (and n which is a constant) They must be strong enough to get the post condition. 2. prove that each one is indeed a loop invariant. 3. What does this program compute? nptes 4. Use the loop invaraints and post condition

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.