Question: (Program) Write a program that declares three one-dimensional arrays named current, resistance, and voltage. Each array should be declared in main() and be capable of

(Program) Write a program that declares three one-dimensional arrays named current, resistance, and voltage. Each array should be declared in main() and be capable of hold- ing 10 double-precision numbers. The numbers to be stored in current are 10.62, 14.89, 13.21,16.55, 18.62, 9.47,6.58,18.32, 12.15, and 3.98.The numbers to be stored in resistance are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, and 4.8. Have your program pass these three arrays to a function called calcVolts(), which calculates the elements in the voltage array as the product of the equivalent elements in the current and resistance arrays: for example, voltagecurrent1resistance1 After calcvolts() has put values in the voltage array, display the values in the array from within main (). Write the calcVolts () function by using pointers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
