2CS21 PRACTICAL EXERCISE 5 - GEOMETRIC PROGRESSION

(Week 8 Starting November 16th)

Hand in date - one week after your scheduled tutorial session in week 8.


1. REQUIREMENTS

Design and implement an Ada program that will output the first 9 terms of a geometric progression (g.p.) and the sum of the terms. Remember that the standard form of a geometric progression is:

Tn = ar^(n-1)

Where:

Assume that a and r are integers supplied by the users within the range of -10 to +10.


2. REPORT

You should hand in a report comprising the following sections:

  1. Requirements
  2. Design - including top down analysis, data tables and N-S chart(s)
  3. Implementation
  4. Black box and data validation test cases, and results

Marks will be distributed evenly over design, implementation and testing. Refer to guidance notes on the presentation of work if necessary.




Created and maintained by Frans Coenen. Last updated 11 October 1999