Show the graphics simulation of drinks machine

Assignment Help Programming Languages
Reference no: EM13145787

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: EM13145787

Questions Cloud

Explain reason inspectors are slower than average : A particular factory can only inspect 46 mice per hour with a standard deviation of 10. At alpha=0.02 company have reason to believe that these inspectors are slower than average?
To share surfing business : Two people are going to share surfing business. They decided to start internet-based business selling surf wear. They don't have previous experience, so they want to keep the business as simple as confidential.
The dissolving of calcium hydroxide in water an endothermic : Is the dissolving of calcium hydroxide in water an endothermic or exothermic process?
Unrecorded trademark with a remaining life : The buildings have a 20-year life and the equipment has a 10-year life. $50,000 was attributed to an unrecorded trademark with a 16-year remaining life. There was no goodwill associated with this investment. Compute the book value of Vega at Janua..
Show the graphics simulation of drinks machine : 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.
Find p-value joining weight reducers on average will lose : At the .05 level of significance, can we conclude that those joining Weight Reducers on average will lose less than 10 pounds? Determine the p-value.
Describe the pathway of the conduction from the atria : Describe the pathway of the conduction from the atria to the ventricles and correlate this conduction with the ECG waves.
What are the ground state electron configuration : what are the ground state electron configuration of the elements in period 2 of this alternate reality?
What is the budgeted cash balance : Finally, Giovanni estimates that he needs to withdraw $55,000 from the business (as dividends) to cover his own personal living expenses this year. Will Giovanni have enough cash to get through the year? What is his budgeted cash balance on Decemb..

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