Question: 5. (Lastname_Lab7_p5.cpp, 20 points) a) Write a program has a declaration in main() to store the following numbers into an array named rates: 6.5, 7.2,7.5,

5. (Lastname_Lab7_p5.cpp, 20 points) a) Write a program has a declaration in main() to store the following numbers into an array named rates: 6.5, 7.2,7.5, 8.7, 8.6,9.4,9.6,9.8,10.0. there should be a function call to show () that accepts rates in a parameter argument named rates and then displays the numbers using the pointer notation * (ratesti); b) Modify the show() function written above to alter the address in rates. Always use the expression *rates rather than (ratesti) to retrieve the correct element
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
