Question: c++ write two functions ( main function and void inputPriceArray function) or write three functions(main function and void inputPriceArray function) + extra points(one other function

c++ write two functions ( main function and void inputPriceArray function) orwrite three functions(main function and void inputPriceArray function) + extra points(one otherc++

write two functions ( main function and void inputPriceArray function)

or write three functions(main function and void inputPriceArray function) + extra points(one other function , the program will not do anything extra,just put some of the code you need into an additional function)

*(please read the question and follow the rules.)

of the main function and program below so it will allow the user to enter up to 10 apartment rents, and rules: es: and then ouput the fowest rend and the average rent, as shown in the sample output. Here are the use the code given on the next page without changing any of it. (However, you may add variable declarations.) You should write prototype declarations as needed where commented below. You should add to the main function as needed You'll need to write the function called inputPriceArray, which is called from the main function code I'm giving you. The inputPriceArray function doesn't return anything, but it inputs the prices the user enters into its array parameter, and it uses a reference parameter to modi store the number of apartment rents that were entered. fy the numApts argument to For 5 points extra credit, write one other function in addition to main and inputPriceArray (the program will not do anything extra; just put some of the code you need into an additional function). Sample Output: $ a.out This program will calculate rental price statistics on up to 10 apartments. Please enter the rents of those apartments, separated by spaces, with -1 marking the end of the list: 1500 250? 2000-1 The lowest monthly rent is: $1500 The average monthly rent is: $2000 $ a.out This program will calculate rental price statistics on up to 10 apartments. Please enter the rents of those apartments, separated by spaces, with -1 marking the end of the list: 1995.99 2424.24 1999.99 2250.50-1 The lowest monthly rent is: $1995.99 The average monthly rent is: $2167.68 Source Code: #include using namespace std; // write your function prototype declaration(s) here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!