A minivan has two sliding doorsnbsp each door can be opened


Can someone please help me with this, it's homework for C++. I have no idea how to do it.

A minivan has two sliding doors.  Each door can be opened by either a dashboard switch, its inside handle, or its outside handle. However, the inside handles do not work if a child lock switch is activated.  In order for the sliding doors to open, the gear shift must be in par, and the master unlock switch must be activated.

Your task is to simulate a portion of the control software for the vehicle.  The input is a sequence of values for the switches and the gear shift, in the following order:

Dashboard switches for left and right sliding door, child lock, and master unlock (0 for off or 1 for activated)

Inside and outside handles on the left and right sliding doors (0 or 1)

The gear shift setting (one of P N D 1 2 3 R).

SAMPLE INPUT:

0    0    0   1   0    1    0    0    P

Dashboard switch on the left door

Dashboard switch on the right door

Child lock

Master unlock

Inside left door latch

Outside left door latch

Inside right door latch

Outside right door latch

Gearshift (P N D 1 2 3 R)

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: A minivan has two sliding doorsnbsp each door can be opened
Reference No:- TGS01123617

Expected delivery within 24 Hours