Question
Your friend who runs a property management company has asked that you rewrite the Arrays and Pointers from last week using pointers instead of subscripts.
Your friend who runs a property management company has asked that you rewrite the Arrays and Pointers from last week using pointers instead of subscripts. He also needs a total rents command Monthly Rental amounts for the 7 properties: 1200 740 660 1000 550 920 1350 Requirements 1. Use a menu?driven program with the following commands: a. Enter rent amounts b. Display rents c. Sort rent amounts from low to high d. Total rents e. Display memory locations f. Exit 2. Use the following functions: a. Int getMenuItem() Displays the menu Inputs the users menu selection Validates the users menu selection Returns the users valid menu selection b. Void enterRents(int*, int) Uses a for loop to input the rent amounts into an array using pointers (not subscripts) to access the array elements c. Void displayRents (int*, int) Uses a for loop to display the contents of the rents array using pointers (not subscripts) to access the array elements d. Int sumRents (int*, int) Uses a for loop to sum the contents of the rents array using pointers (not subscripts) to access the array elements Returns the total e. Void displayMemoryLocations (int*, int) Uses a for loop to display the memory locations of the array elements f. Void selectionSort (int*, int) Sorts the rents array into ascending order using pointers (not subscripts) to access array elements 3. Main Program uses a while loop with embedded switch statement to call appropriate functions based on menu selection. 4. Output must be labeled and easy to read 5. Program must be documented with the following: a. // Name b. // Date c. // Program Name d. // Description
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started