1. We know that from ECE 109, to calculate the equivalent resistance of a network of resistors in series in parallel are given by:
Write a C++ program that asks the user to input values for resistors (as many as they would like until some condition is entered that stops) and then ask whether those resistors entered are either in parallel or series and compute and print the result. (Hint: Use a while loop to check the stopping condition.)
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
2
|
4
|
6
|
8
|
10
|
12
|
14
|
16
|
18
|
20
|
3
|
6
|
9
|
12
|
15
|
18
|
21
|
24
|
27
|
30
|
Write a C++ program that prints the multiplication tables of 1 to 10 similar to the following