A minivan has two sliding doors

Assignment Help C/C++ Programming
Reference no: EM13843408

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)

Reference no: EM13843408

Questions Cloud

Consider the following nested loop construct : Consider the following nested loop construct. Categorize its efficiency in terms of the variable n using big-O notation. Suppose the statements represented by the ellipsis require four main memory accesses (each requiring one microsecond) and two dis..
Formulate a linear program thal maximizes the farmers profit : Formulate a linear program thal maximizes the farmers profit - Write a linear model that detennince the minimum cost generation plan.
Determine the fraction defective in each sample : Determine the fraction defective in each sample. If the true fraction of defective for this process is unknown, what is your estimate of it? What is your estimate of the mean and standard deviation of the sampling distribution of fractions defective ..
Determine optimal quantity of coal to receive in each order : The purchasing manager for the Pacific Steel Company must determine a policy for ordering coal to operate 12 converters. Each converter requires exactly 5 tons of coal per day to operate, and the firm operates 360 days per year. Determine the optimal..
A minivan has two sliding doors : 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, th..
Identifies third party logistics provider : Using the internet identifies a third party logistics (3PL) provider and describes the type of services it offers and the advantages it might provide the outsourcing company.
Use wertheims structure for case analysis : Write a formal case analysis (5-7 pages) of "The Virgin Group in 2012." Use Wertheim's structure for case analysis. Pay particular attention to the choices of corporate strategy when outlining the causes of any problems identified. Identify creative ..
Using powerpoint, word, visio or any other graphical editor : Using Powerpoint, Word, Visio or any other graphical editor that allows you to create shapes and arrows, create a simple flow chart  that provides the functionality for this pseudocode: Write "Enter the price in dollars: " Input Price
List some benefits of using project management techniques : Define the terms project, project objective and give some examples. What role does a customer have during the project life cycle? Why is it important to satisfy the customer? Define scope, schedule, cost, and customer satisfaction. Why are these cons..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a program that prompts a user for her name

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.

  Linked listsnbspalong with vectors linked lists are one of

linked listsnbspalong with vectors linked lists are one of the fundamental data structures in computer science. unlike

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Show the items by zone or location within the store

There is other information. Some people shop on a budget so they need the price and the sale price. Use an array or vector to hold the list of items. The display should show the items by zone or location within the store. (Display the output by loc..

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

  Your program will read the array

Your program will read the array from the file, check the diagonal and print a report containing the size and the status of the diagonal. A typical report would look like: The matrix is 3x3 and all the numbers on the main diagonal are the same.

  You have in your program an arraylist which includes

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Value referenced by the pointer.

Add 10 to the value referenced by pointer switch.Add 4 to the address stored in pointer switch.Subtract 5 from the value referenced by the pointer.

  Write a program to simulate the process

Write a program to simulate the process of an n-bit (n x n) shift-and-add syn-chronous multiplier - Compare performance of an unsigned shift-and-add multiplier with one using a shift-over technique.

  Expressions until the user says

Expressions until the user says he or she wishes to end the program. For a more difficult assignment, enhance your program so that the expression need not be well formed; if it is not well formed, then the user is asked to reenter the expression.

  Create an output array using input

create an output array using input x values 1 through 10.

  Integerset class create class integerset for which each

integerset class create class integerset for which each object can hold integers in the range 0 through 100. represent

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd