EEE1008 Assignment 2: simple circuit simulator ============================================== Write a C program that performs the following tasks: It prompts the user to enter three resistance values. It prompts the user to enter a voltage. It prompts the user to enter a choice: serial or parallel. All entered values should be checked to see if they are sensible (if not, terminate the program with a -1 return code). The program then proceeds to calculate what the total resistance of the circuit would be, and what the currents through and voltages across each individual resistor would be, if they were connected either in series or in parallel (as dictated by the choice made by the user). The program then outputs the results of these calculations in tabular form to make them easy to read. Submission ---------- Your submission should be submitted on Blackboard as a single PDF file, and should have the following structure: 0) header sheet showing your name, student number and course details (e.g. B.Eng. EEE). 1) Objective. What is the program meant to achieve? 2) Algorithm. Describe (in mathematical terms) what the basic formulae underlying the program are. Describe briefly how/where you implemented this in terms of C code 3) Pseudocode description of the program 4) Flow diagram of the calculation only (no need to include the prompts) 5) Testing results: what values and choices did you use to test the program, and whether the results were correct 6) Conclusion: did the program work? If not, why? How could it be improved? 7) The program listing, including comments 8) Example outputs, corresponding to your testing strategy Marking ------- The mark sheet used for this assignment is available online - see the web page.