Exercise 2: Enhancement (50%)




Document: Software Engineering 1: Lab Exercises

next Session 6: Week 12/13: Lab Examination 1
up Session 5: Week 10/11: Ever Decreasing Circles...
gif Exercise 1: Correction (50%)

Exercise 2: Enhancement (50%)

The program circle0 calculates the circumference and area of just one circle.

Develop an enhanced version of this program, called circle1. This should behave in the same way as circle0, except that it should repeat the sequence (of requesting a radius, then calculating and printing out the circumference and area) exactly five times. Each time the prompt should change (so the first time it should say "Enter radius 1:", the second time "Enter radius 2" and so forth).



McMullin@eeng.dcu.ie
Tue Apr 30 14:15:37 GMT 1996