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

  Create pseudocode for program to accept insurance data

Create a pseudocode for a program to accept insurance policy holder data, including a policy number, customer last name, customer first name, age, premium due month, day, and year,

  Calculate and display total fees and discount

Write a program to select type of student using an option button and capture total credit hours using a text box. Calculate and display total fees, discount (if any) and net total fees (after discount).

  Write function to compute average temperature for the month

Write the function, print_temps(), with same two parameters plus count of hot days. Print neat table of temperatures. At same time, compute average temperature for the month.

  Explain usability and accessibility in site design

A description of content to be included in site and how this content will be acquired. Attention should be given to copyright restrictions.

  Benefits of validating the forms

When you are collecting data, you need to consider what data to collect, why you are collecting the data. What are other benefits of validating your forms? How are forms validated? What are some form validation best practices?

  Write pseudocode to accept candy name

Write a pseudocode for the following: A programm to accept a candy name (for exmple, "chocolate-covered blueberries'), price per pound, and number of pounds sold.

  Write the program to display company-s payroll report

Write down the program to display company's payroll report in list box. The program must read each employee's name, hourly rate, and hours worked from file and produce report in a table format.

  Prepare menu driven program for arithmetic operations

Create algorithms, flowchart and write programs in c language for following: Prepare a menu driven program for different arithmetic operations.

  Illustrate whether program will fit in address space

Will this program fit in address space? If page size were 512 bytes, would it fit? Remember that page may not contain parts of two different segments.

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Write program to prints question do you want to continue

Write a program which prints question"do you want to continue?"and reads user input. if user input is"y", "yes", "ok", "sure", or "why not?" , print out "ok".

  Explain fundamentals types of scalar-array and hash in perl

Later versions of perl moved beyond fundamentals types of scalar, array, and hash and introduced a reference type. Write down the Perl subroutine, referenceTypeExample.

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