Exercise 1: Basic Simulation Program (60%)




Document: Software Engineering 1: Lab Exercises

next Exercise 2: Enhanced Simulation Program (40%)
up Session 11: Week 22/23: Simulating an RC
gif Session 11: Week 22/23: Simulating an RC

Exercise 1: Basic Simulation Program (60%)

Develop a program which will "simulate" the behaviour of a simple RC circuit, in the sense of providing predictions of how the charge on the capacitor will vary over time.

The program should prompt for and read in values for the following parameters from the user:

When the program is executed, it should print one line on the screen for each time step. Each line should show the time and the calculated value for q(t) at that time.




Document: Software Engineering 1: Lab Exercises

next Exercise 2: Enhanced Simulation Program (40%)
up Session 11: Week 22/23: Simulating an RC
gif Session 11: Week 22/23: Simulating an RC



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