_. [30 pts] UNCC Parking: You are in-charge of visitor parking decks at Your job is to create a Parking class, which has a string variable to identify the decks (For example: CRI Deck, East Deck, Cone...

_. [30 pts] UNCC Parking: You are in-charge of visitor parking decks at Your job is to create a Parking class, which has a string variable to identify the decks (For example: CRI Deck, East Deck, Cone Deck, Union Deck). Create a constructor to allow users to initialize the name of the deck. For each of these deck you need a data member to store the num- ber of spots that are occupied. Create member functions that increments the spots occupied by one and another function with same name (overload it) which accepts an integer argument and adds it to the existing spot. Create functions that return the name, occupancy, and revenue of each spots. (Consider each spot occupied for the entire day for simplicity and daily rate of a spot as $7). For every deck, display the following information: name of the deck, occupancy, and revenue. Finally, display the total occupancy of all decks and the revenue (static method is preferred). Test the class with at least three visitor parking decks.

Jan 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here