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

  Create and implement application which reads integer value

Create and implement application which reads the integer value representing a number grade. purpose of the program is to determine corresponding letter grade based on the following grade policy table

  Write a program to enter the number of apartment units

Write a program that prompts the user to enter the number of apartment units, the rent to occupy all the units, the increase in rent that result in a vacant unit.

  Write code to concatenate strings separated by space

Write a few lines of code (need not be a separate function) to: Concatenate strings a and b separated by space into a string f. Print it.

  Write a method to accepts string as parameter

Write a method called wordCount that accepts a String as its parameter and returns the number of words in the String. A word is a sequence of one or more nonspace characters

  Design program to ask user to enter amount of purchase

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax.

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  Design a website to allow calculation of areas

Design a website to permit calculation of areas. A radio button list can be used to allow the user select what type of area to be calculated. Once the selection is done, the input text boxes should be displayed with the proper labels.

  Application to inputs five numbers given between a range

Write an application that inputs five numbers, each between 10 and 100, inclusive. As each number is read, display it only if it's not a duplicate of a number already read.

  Program to continuously accepts each worker-s first name

Program which continuously accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Application to input five numbers by one-dimensional array

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

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