Program must be written in C I could use all the help I coul

Program must be written in C++. I could use all the help I could get. Even if u just have some tips it would be helpful. question is in the pictures. I have no idea where to even start.












sample output






HelpoDU organize the car parking during a football game. You will need to develop a machine to automate the process of choosing the parking lot for the vrstors (football fans) There are 9 available parking lots (Lor-A Lot-B, Lot distributed in a 33 grid as m Figure I The maximum capacity of each lot varies as in the figure The visitors can access the paskang lots only via one of the ee gates (Gate A Gate B and Gate O. Gate- A is the closest to the main entrance of the football stadium, and Gate c is the farthest visitors are only allowed to enter the stadium va the main entrance. The cost of parking in each lot varies based on the distance between the lot and the football stadium as shown Fu ure The Elo er the parkme kot to the stadium\'s mass embrasee, the F expessive the pati cost is. The starting cost od parking un lot A S25.00, and the cost of Pasking in each lot decreases by the amount a 50 ep away on the parking grid Moves on the grid are only allowed in the harizontal or venacal directions. No diagonal mowes ade allowed The price of packing also varies based on the total ailable paking spots. Ouce the wal number of empty porking spots is less than 50, the price of parking un all parking lot wall go up addiraoual S5.75. osee the total mumber of empty parking spots is lees than 25, the priee of parbng in a parking lots will go up aeother addieioual s7.25. For example, if the cost of Lot-A initially walk S2500, once the total member of empry parking spoti less turn so, the cost of Lok A become S30,75 And otce the tocal number of empty parking spots ts lees than $38 25, the co1 of Lot-A

Solution

use .net c++ platform


class parking_lot
{
int parking[3][3][3]; // matrix grid of 3 x 3 cause 9 parking slot only
//int gate[3]; // {\'A\',\'B\',\'C\'}
int money[3][][] // it is taken 2d cause money[0][0]=$25 means 1st parking
int max_capacity[3][][];
int dis_gate[3][][]; //
int avail_parking[3][][] // which gate which block or grid parking
}

// gate A closer to main entrance costly
// gate c further so cheaper
// entrance through main gate only
// every gate has 3 x 3 grid means 9 parking slot

for(i=1;i<=3;i++)
{
for(j=0;j<3;j++)
{
for(k=0;k<3;k++)
{
parking[i][j][k]; // row will go max 1 to 3 represent gate{ a,b,c} while [j][k] will go { 00,01,02,10,11,12,20,21,22} block/grid{a,b,c,d,e,f,g,h,i}
}}}   
// [] represent gate {a,b,c} the rest represent parking slot[3][3] { a,b,c,d,e,f,g,h,i}

Program must be written in C++. I could use all the help I could get. Even if u just have some tips it would be helpful. question is in the pictures. I have no
Program must be written in C++. I could use all the help I could get. Even if u just have some tips it would be helpful. question is in the pictures. I have no

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site