Sample Output for A06
Return to assignment description
This shows the expected output using the sample data.
NOTE that your "Type" column will be different if you use no package,
or if your package has a different name that I gave you in the sample code.
Sorted Figure Info
------------------
This program reads in the sizes of several shapes then prints out
information about them in order from smallest to largest.
by Mark Young (A00000000) and ....
NOTE: currently INCOMPLETE
Enter the width and height of a rectangle: 30 40<CR>
Enter the width and height of a rectangle: 10 20<CR>
Enter the width and height of a rectangle: 50 60<CR>
Enter the width and height of an oval: 10 20<CR>
Enter the width and height of an oval: 50 50<CR>
Enter the width and height of an oval: 30 40<CR>
Enter the width and height of a triangle: 20 50<CR>
Enter the width and height of a triangle: 10 30<CR>
Enter the width and height of a triangle: 30 40<CR>
Enter the diameter of a circle: 50<CR>
Enter the diameter of a circle: 700<CR>
Enter the diameter of a circle: 20<CR>
Type Width Height Area Perimeter
-------------- ----- ------ --------- ---------
a06.Triangle 10.0 30.0 150.0 71.6
a06.Oval 10.0 20.0 157.1 48.4
a06.Rectangle 10.0 20.0 200.0 60.0
a06.Circle 20.0 20.0 314.2 62.8
a06.Triangle 20.0 50.0 500.0 123.9
a06.Triangle 30.0 40.0 600.0 120.0
a06.Oval 30.0 40.0 942.5 110.5
a06.Rectangle 30.0 40.0 1200.0 140.0
a06.Oval 50.0 50.0 1963.5 157.1
a06.Circle 50.0 50.0 1963.5 157.1
a06.Rectangle 50.0 60.0 3000.0 220.0
a06.Circle 700.0 700.0 384845.1 2199.1
Return to assignment description