Figure shows the graphics simulation of the drinks

Assignment Help Application Programming
Reference no: EM13375165

FIGURE shows the graphics simulation of the drinks machine.

2077_Graphics simulation of the drinks machine.png

The list of inputs and outputs is as follows:

IP0 Coin slot sensor        OP0 Coin hold solenoid
IP1 Cola drink button      OP1 Coin accept solenoid
IP2 Lemon drink button   OP2 Dispense cola drink solenoid
IP3 Cherry drink button   OP3 Dispense lemon drink solenoid
IP4 Lime drink button      OP4 Dispense cherry drink solenoid
IP5 Reject coin button     OP5 Dispense Lime drink solenoid

The operation of the Soft Drinks Machine is as follows;

When a coin is clicked on with the mouse it is placed into the slot, it then operates the coin sensor IP0. This should operate OP0 (coin hold solenoid), which will hold the coin in place. At this point either a drink is selected or the coin rejected.

The rejection of a coin is by operating IP5, which should reset OP0 allowing the coin to fall into the rejection box. If a coin is rejected, pointing the mouse at the coin and clicking resets the machine.

If a drink is selected by the operation of one of the drink select buttons, OP1 (coin accept solenoid) should operate. This allows the coin to fall into the Kept box. Once the coin has dropped into the box, the solenoid corresponding to the selected drink should operate, allowing the drink to be dispensed.

Once the selected drink has been dispensed, clicking the coin will reset the machine.

Important Notes: When writing the program you must ensure that:

(a) The coin cannot be rejected once a drink has been selected.

(b) Selecting a drink disables all of the other drink buttons.

As usual, use the listed inputs and outputs and any flags, timers, and counters you require to complete the assignment. Use the documentation facilities to describe the program function.

Reference no: EM13375165

Questions Cloud

Molly and pat signed a contract providing that pat will : molly and pat signed a contract providing that pat will furnish the correct used business law book for use in mollys
Can you advise ben as to his legal position does a contract : can you advise ben as to his legal position? does a contract exist?ben and carl went for a surf on saturday and decided
Q1 find three positive numbers whose sum is 54 and whose : q1 find three positive numbers whose sum is 54 and whose product is as large as possibleq2 let fx y x2 3y - 3xy and r
Two people are going to share surfing business they : two people are going to share surfing business. they decided to start internet-based business selling surf wear. they
Figure shows the graphics simulation of the drinks : figure shows the graphics simulation of the drinks machine.the list of inputs and outputs is as followsip0 coin slot
Figure shows the graphic simulation of the elevatorthe : figure shows the graphic simulation of the elevator.the object of this assignment is to write a program that will drive
Consider the above diagram figure of the car park the : consider the above diagram figure of the car park. the object of this assignment is to write a program to operate the
In industry plant conditions are monitored and if there are : in industry plant conditions are monitored and if there are problems it is necessary to have some way of indicating
1 design and draw a ladder diagram circuit suitable for a : 1. design and draw a ladder diagram circuit suitable for a plc which will fulfil the following control requirementa

Reviews

Write a Review

Application Programming Questions & Answers

  1 here is a short program it prints out the value of a

1. here is a short program. it prints out the value of a variable x. ernie and bert disagree about what will be printed

  In this lab we will use the uart0 peripheral to communicate

in this lab we will use the uart0 peripheral to communicate with a pc using the rs232c serial protocol. we will

  Write a paper on mcdonaldsethics and social responsibility

write a paper on mcdonalds.ethics and social responsibility at mcdonaldspaper includesabout mcdonaldscorporate social

  Directionall of them short discussion each of them 200

directionall of them short discussion. each of them 200 words all together around 1200

  Basic requirementsscreen one has three edittext views and

basic requirementsscreen one has three edittext views and one button.the edittext views allow you to enter a students

  1 object oriented programming class hierarchies

1. object oriented programming class hierarchies inheritance and virtual functions in this part of the assignment you

  Task design and implement tower of hanoi puzzle program

task design and implement tower of hanoi puzzle program using c and windows presentation foundation wpf template in

  Assignment 1nbspdescription this first assignment will

assignment 1nbspdescription this first assignment will allow you to become more comfortable with threads and the basic

  Question 1 detail for each of the four following mips

question 1. detail for each of the four following mips instructions which actions are being taken at each of their

  Tavelling salesman tsp problem on the l1-metric plane

travelling salesman tsp problem on the l1-metric plane problem description a travelling salesman wants to make a tour

  Problem descriptionyou are working as an engineer for a

problem descriptionyou are working as an engineer for a materials manufacturing research lab and have been asked to

  Consider the above diagram figure of the car park the

consider the above diagram figure of the car park. the object of this assignment is to write a program to operate the

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