Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prepare the user interface elements for a coffee vending machine with following features: Assume a machine for coffee and a cup of coffee costs 2

Prepare the user interface elements for a coffee vending machine with following features:

  • Assume a machine for coffee and a cup of coffee costs 2 quarters.
  • The machine accepts only quarters (if another type of coin is inserted it is returned to customer mechanically and no message is given, so ignore that case).
  • The machine works in a way that the customer first needs to insert quarters. The vending machine memorizes the number of quarters inserted and displays the amount.
  • The customer needs to press a button representing coffee.
  • The machine never runs out of coffee.
  • If right amount is inserted, the machine gives the customer coffee. With a message specifying that coffee is ready.
  • If the amount inserted into the machine is greater than the cost of coffee the machine returns the change.
  • The machine also has a button for returning the money inserted which can be pressed any time.
  • If the customer presses the coffee button and theres not enough money inserted, system requests for money.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

LO2 Identify components of workflow analysis.

Answered: 1 week ago