vending machine (FSM MOORE MACHINE) sells drinks that costs $1 each. Moreover, we have only 3 types of coins: 50cents, $1 and $2. The objective is to design a state machine that determines when to dispense a can and how much change to return. One rule is that the change will be given before the drink is dispensed. System’s options: 1)entering no money 2) insert 50cents followed by another 50cents => get a drink 3) insert 50cents followed by $1 => receive change => get a drink 4) insert 50cents followed by $2 => receive change => then get a drink 5) insert $1 => get a drink 6) insert $2 => receive change => then get a drink 2 bit encodings for coin inputs (coin in) and outputs (coin out) 0 = “01” 50cents = “10” $1 = “11” 2$ = “00” Make a MOORE state diagram to accomplish this problem.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question
A vending machine (FSM MOORE MACHINE) sells drinks that costs $1 each. Moreover, we have only 3 types of coins: 50cents, $1 and $2. The objective is to design a state machine that determines when to dispense a can and how much change to return. One rule is that the change will be given before the drink is dispensed. System’s options: 1)entering no money 2) insert 50cents followed by another 50cents => get a drink 3) insert 50cents followed by $1 => receive change => get a drink 4) insert 50cents followed by $2 => receive change => then get a drink 5) insert $1 => get a drink 6) insert $2 => receive change => then get a drink 2 bit encodings for coin inputs (coin in) and outputs (coin out) 0 = “01” 50cents = “10” $1 = “11” 2$ = “00” Make a MOORE state diagram to accomplish this problem.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning