Test 3 (Autumn Repeat):<BR>B.Eng. (Electronic Engineering)

Test 3 (Autumn Repeat):
B.Eng. (Electronic Engineering)

General

This test is made up of two parts:

  1. Reformatting and correcting a given program.

  2. Modifying this corrected program in certain specified ways.

Note that marks will be awarded purely on the content of the final report. Therefore, at all stages of the test, please describe your plans, problems encountered, tests carried out and, when the required tasks have been completed, describe any conclusions drawn from the exercise.

Part 1 (60%)

The program SERIES.C is supposed to calculate the equivalent resistance of a set of separate resistors , , etc. connected in series, according to the following equation:

The program is currently poorly laid out and formatted, and has various other defects. You are required to:

Part 2 (40%)

Decompose the main() function of the program SERIES.C (as corrected in part 1) into a number of separate (sub-)functions which are appropriately invoked by main(). Introduce separate functions for:

Correct any defects manifested in your modified program. Ensure that you test the program severely in an effort to reveal any remaining run time defects.



McMullin@ugmail.eeng.dcu.ie
Fri Jun 30 12:53:22 BST 1995