Question
Description Your friend who runs a property management company needs your help in writing a program to monitor his rental properties. He wants you to
Description Your friend who runs a property management company needs your help in writing a program to monitor his rental properties. He wants you to write a program that uses an array to store, display, sort, and total the income for his 5 rental properties.
Monthly Rental amounts for the 5 properties:
1000 |
560 |
750 |
1200 |
500 |
Requirements
1. Use a menudriven program with the following commands:
a. Enter rent amounts
b. Display rents
c. Sort rent amounts from low to high
d. Display memory locations
e. 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 standard array subscript notation
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. Void displayMemoryLocations (int[], int) Uses a for loop to display the memory locations of the array elements
e. Void selectionSort (int[], int) Sorts the rents array into ascending order using standard array subscript notation
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