Exercises 6-9 each contain a while loop annoted with a pre-and a post-condition and also a loop invariant. In each case, use the loop invarient theorem to prove the correctness of the loop with respect to the pre-and post-conditions.
8. [Pre-condition:
1.
2. sum
End while
[Post-condition:

Want to see the full answer?
Check out a sample textbook solution
Chapter 5 Solutions
WEBASSIGN F/EPPS DISCRETE MATHEMATICS
- Evaluate the line integral sin z dz, So sin where C is the portion of the curve y = x² from 0 to −1 + i.arrow_forwardLet f(z) be complex differentiable everywhere in C. Fix two distinct complex numbers a and b and a circle C of radius R with |a| < R,|b| < R traversed in the counter-clockwise direction. Evaluate the integral Sc − f(z)dz (z - a)(z – b) in terms of a, b and the values of f at those points.arrow_forward| Let C be a circle (with a positive radius) such that z = 1 lies in its interior. Evaluate the contour integral So Tz zez (z - 1)³ = where C is traversed in the clockwise direction. dzarrow_forward
- question 8arrow_forwardTwo construction companies are bidding against one another for the right to construct a new community center building. The first construction company, Fine Line Homes, believes that its competitor, Buffalo Valley Construction, will place a bid for this project according to the distribution shown in this table: Buffalo Valley's Bid Bid Probability $160,000 0.2 $165,000 0.5 $170,000 0.2 $175,000 0.1 Furthermore, Fine Line Homes estimates that it will cost $160,000 for its own company to construct this building. Given its fine reputation and long-standing service within the local community, Fine Line Homes believes that it will likely be awarded the project in the event that it and Buffalo Valley Construction submit exactly the same bids. Find the bid that maximizes Fine Line’s expected profit. Max expected profit $ ________ . Bid that maximizes profit $ ________ .arrow_forwardFind the area of the surface obtained by rotating the circle x² + y² = r² about the line y = r.arrow_forward
- question 3 part a and barrow_forwarddo question 2arrow_forward21. ANALYSIS OF LAST DIGITS Heights of statistics students were obtained by the author as part of an experiment conducted for class. The last digits of those heights are listed below. Construct a frequency distribution with 10 classes. Based on the distribution, do the heights appear to be reported or actually measured? Does there appear to be a gap in the frequencies and, if so, how might that gap be explained? What do you know about the accuracy of the results? 3 4 555 0 0 0 0 0 0 0 0 0 1 1 23 3 5 5 5 5 5 5 5 5 5 5 5 5 6 6 8 8 8 9arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning

