Question: Using functions, write a C++ program to calculate voltage (v) as the product of current (i) and resistance (r). Use arrays to define a set
Using functions, write a C++ program to calculate voltage (v) as the product of current (i) and resistance (r). Use arrays to define a set of values for the current as 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15 and 3.98. The set of corresponding values for resistance are given by 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, and 4.8. The calculated voltage array must be displayed as output using the main program. Use pointers to write the voltage function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
