Write a program to operate the barriers

Assignment Help Programming Languages
Reference no: EM13145713

Consider the above diagram, FIGURE, of the car park. The object of this assignment is to write a program to operate the barriers to allow the cars in and out.

399_Write a program to operate the barriers.png

As you can see there is a box in which there are two condition lights for when the car park is Full, and when there are Spaces.

The entrance to the car park is on the left hand side. When a car drives into the car park there is a sensor that detects the car and this should cause the barrier to be opened to allow the car in.

On the right hand side is the exit. When a car leaves the car park it will activate a sensor inside the park to open the exit barrier.

Both the entry and exit barriers will need to be in the Up position long enough to allow the cars to enter or leave the car park. The inputs and outputs are listed as follows:

IP0 = Entry Sensor OP0 = Entry Barrier
IP1 = Exit Sensor OP1 = Exit Barrier
OP2 = Full Light
OP3 = Spaces Light

When writing the program it is necessary to observe the following conditions. When the car park is not full the Spaces light should be ‘ON'. When the car park is full the Full light should be ‘ON'. As a car enters or leaves the car park the entry and exit barriers have to be held in the Up position long enough to allow the cars to pass under the barriers.

When the program is complete and the car park graphic is displayed in Simulation mode the program is operated by pointing at the car and clicking the mouse button. You will see directional pointers left and right so point at and click the direction you wish the car to travel. When you wish a car to leave the car park point at the one you wish to leave the park and click. You should explain the operation of the program, using the documentation facility.

Reference no: EM13145713

Questions Cloud

Define what is the first step in the reaction sequence : What is the first step in the reaction sequence of these Aldol reactions under basic conditions?
Identify what is the best measure of variability to use : Which would be inappropriate, and why. Then identify what you think is the best measure of variability to use for your example and explain why you believe it to be better than the others.
Decisions which affecting the future of business : How are the income statement and statement of cash flows used to make business decisions? What are the advantages and limitations of using them to make decisions affecting the future of a business?
Could an organism be both mr and vp negative : Any organism that uses the Krebs cycle can use citrate and most organisms have the enzymes for the Krebs cycle. Why then do so many organisms test Citrate negative with the citrate test?
Write a program to operate the barriers : The entrance to the car park is on the left hand side. When a car drives into the car park there is a sensor that detects the car and this should cause the barrier to be opened to allow the car in.
List the structures an erythrocyte passes through : List the structures an erythrocyte passes through leaving the veins that drain the brain on the way to the spleen. There are supposed to be 15 structures. I am given brain, internal jugular vein, brachiocephalic vein then there are 15 blanks follo..
Records warranty expense with an adjusting entry : These are the only repairs required in 2010 for this copier. Based on experience, Lee expects to incur warranty costs equal to 3% of dollar sales. It records warranty expense with an adjusting entry at the end of each year
Prepare a schedule indicating cash collections : Prepare a schedule indicating cash collections from sales for May, June, and July.
Explain the pressure and temperature rise : A rigid tank contains 20 lbm of air at 20 psia and 70F. More air is added until the pressure and temperature rise to 35 psia and 90F

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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