EEE1004: Project 1. Ohm's Law Calculations
Design, implement and document a program that produces calculations
for Ohm's Law.
The program should calculate:
- Current I for given Voltage V and Resistance R,
- Voltage V for given Current I and Resistance R,
- Resistance R for given Voltage V and Current I.
To do this, the program asks the user to choose a particular option,
e.g. by providing them with a message like:
Enter one character:
I, to calculate Current
V, to calculate Voltage
R, to calculate Resistance
Please enter your choice:
When the choice is made the program should prompt the user to enter
the two known parameters, produce calculations in accordance with
Ohm's Law and output the appropriate result.
Consider the possibility of embedding
your basic algorithm (code) into a repetition structure which would
allow the user to perform a series of calculations until, for example,
the 'q/Q' (Quit) option is chosen.