Ascending Circles
Program 8-28 from Chapter 8 creates an array of four Circle objects, then displays the
area of each object. Using a copy of that program as a starting point, modify it to create an
array of eight Circle objects initialized with the following radii: 2.5, 4.0, 1.0, 3.0, 6.0,
5.5, 3.5, 2.0. Then use a bubble sort to arrange the objects in ascending order of radius size
before displaying the area of each object.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here