Question: objective The objective of this homework is to write a ParkingLot class and a program to simulate the running of 3 parking lots at an

 objective The objective of this homework is to write a ParkingLotclass and a program to simulate the running of 3 parking lotsat an airport. Task 1: In Linux, create a program with thefollowing specification 1. Create a program called parking .cpp which contains aParking Lot class. and stores information about a parking lot: name, numberof spots, daily rate current occupied 2. Your full program will helpan airport nun 3 parking lots: Economy, Standard, and Premium. When run,it should present a menu to allow a car to enter eachof the 3 ots, exit each of the 3 lots, give statson the 3 lots, or quit. The available spots and rate perlot is up to you. 3. To support your program, your ParkingLotclass should have the following a. Store 4 private variables: name, numberof spots, daily rate, current occupied. Since these are private, the exactvariable names do not matter. b. A setter and getter for each

objective The objective of this homework is to write a ParkingLot class and a program to simulate the running of 3 parking lots at an airport. Task 1: In Linux, create a program with the following specification 1. Create a program called parking .cpp which contains a Parking Lot class. and stores information about a parking lot: name, number of spots, daily rate current occupied 2. Your full program will help an airport nun 3 parking lots: Economy, Standard, and Premium. When run, it should present a menu to allow a car to enter each of the 3 ots, exit each of the 3 lots, give stats on the 3 lots, or quit. The available spots and rate per lot is up to you. 3. To support your program, your ParkingLot class should have the following a. Store 4 private variables: name, number of spots, daily rate, current occupied. Since these are private, the exact variable names do not matter. b. A setter and getter for each of the 4 variables listed above getName setName getNumspots set Numspots iii. getRate set Rate getoccupied, setoccupied c. Implement a carEnter function which emulates a car entering the ot. Watch edge cases when the lot is full d. Implement a carExit function which emulates a car leaving the lot. Wach edge cases when the lot is empty. e. Implement a get Profit function which retums how much profit will be made with the current rate and occupancy f Implement a printstats function to print out the statistics for the lot, including the occupancy rate g. When compiled with g++ Wall parking.cpp, no warnings are given

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!