write compile then run a c++ program that declares 3 one-dimensional arrays name
ID: 3636952 • Letter: W
Question
write compile then run a c++ program that declares 3 one-dimensional arrays named, quantity, price, and amount. each array should be declared in main() and be capable of holding 10 double-precision numbers. the numbers to store are as follows; 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. the numbers to store in quantity are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, 4.8. the program should pass these 3 arrays to a function named extend()., which should calculate elements in the amount array as the product of the corresponding elements in the price and quantity arrays. after extend() has passed valaues to the amount array, the values in the array should be displayed from within main().Explanation / Answer
#include using namespace std; void calc_volts( double current[],double resistance[],double volts[]){ int i; for( i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.