The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Create a set of working classes representing a car park as described below. The code you write should contain sufficient commenting and be of production quality. You may use the internet during your time. You may also ask questions to clarify the details described below.A car park has a nameA car park has a certain number of bays (car spots).A car park has a list of vehicles currently in the car parkA car park has a property indicating how full the car parkVehicles can enter and exit the car park. When a vehicle enters the car park, the occupancy count goes up by 1. When a vehicle exits the car park, the occupancy count goes down by 1. A vehicle cannot enter the car park if it is full. A vehicle cannot exit the car park if its fee has not been paid.All vehicles have a weightAll vehicles have a fee for parking in the car park. This vehicle fee is $2Vehicles have the following details.Standard Car: Fee is calculated as vehicle fee + $5Luxury Car: Fee is calculated as standard car fee + $3Motorbike: Fee is calculated as vehicle fee + $2.Truck: Fee is calculated as vehicle fee + $10.Vehicle Extra charges.An extra charge of $3 is added to a vehicle fee if its weight is over 100kg.Demonstrate the following order of events in a console or windows forms application using the classes you have built:Initialise the car park with 10 bays and a name of “Test carpark”Have one of each type of vehicles enter the car park. The truck should have a weight of 101 kg.List the details of all the vehicles in the car park including their type and outstanding fees.Pay the outstanding fee for the luxury carList the details of all the vehicles in the car park including their type and outstanding fees.Have the luxury car exit the car parkList the details of all the vehicles in the car park including their type and outstanding fees.Pay the outstanding fees for the remaining carsHave the remaining cars exit the car parkList the details of all the vehicles in the car park including their type and outstanding fees.Have a motorbike enter the car parkHave the motorbike exit the car parkList the details of all the vehicles in the car park including their type and outstanding fees.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- ----------- -----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll