Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write, compile, and run a c++ program that declares 3 one-dimensional arrays nam

ID: 3636776 • Letter: W

Question

write, compile, and run a c++ program that declares 3 one-dimensional arrays named price, quality and amount. each array should be declared in main() and be capable of holding 10 double-precision numbers.the stored numbers 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 store in quantity are, 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9 and 4.8. the program should pass these 3 arrays to a fucntion named extend(), which would then calculate elemnets in the amount array as the product of the corresponding elements in the price and quantity arrays.after extend(0 has passed values to the amount array the values in the array should be displayed from within the main().

****I hope this information helps, as this is rough from the word go, thanks for your assistance.*****

Explanation / Answer

#include #include void extend(double[],double[],double[]); main() { const int Size=10; double Price[Size]={10.62,14.89,13.21,16.55,18.62,9.47,6.58,18.32,12.15,3.98}; double Quantity[Size]={4,8.5,6,7.35,9,15.3,3,5.4,2.9,4.8}; double Amount[Size]; extend(Price,Quantity,Amount); cout