Question: 2. Write an interactive program using do...while loop named RandomRects that calculates and displays the area of randomly-generated rectangles. The width and height of each
2. Write an interactive program using do...while loop named RandomRects that calculates and displays the area of randomly-generated rectangles. The width and height of each rectangle should be a randomly generated integer between 1 and 10 inclusive. Your program should keep generating random rectangles until an increasing sequence of four areas is printed. In other words, if the last four rectangles generated have areas of al, a2, a3 and a4 such that al
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
