Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions

Question

Explain how psychologists use traits to describe personality.

Answered: 1 week ago

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago