1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elis [28]
3 years ago
10

Vending machine controller (adapted from Katz, "Contemporary Logic Design") Design and implement a finite state machine that con

trols a vending machine. The vending machine sells packages of gum that cost 15 cents each. The machine accepts nickels (5 cents) and dimes (10 cents). After someone has inserted 15 cents, the FSM will send an output signal to a mechanical system that releases a package of gum. If a customer inserts 20 cents (two dimes, they will get a pack of gum but they will not receive any change back. In addition to standard reset and clock signals, your FSM will have two input signals: N and D. N is asserted when the customer has inserted a nickel and D is asserted when the customer inserts a dime. (You can assume that both can never be asserted at the same time. The system has one output Y, which indicates that the mechanical system should dispense the gum. After the system outputs Y = 1 for one clock cycle, it returns to its initial state for the next customer.
(a) Draw a Moore-style state diagram that shows the function of your system. (Hint: you can do it in only four states.)
(b) Choose a state encoding to use and indicate it clearly. Use full binary encoding, that is, make your four states have values 00, 01, 10, and 11. Here, give a table that shows which encoding value you will use for each of the states in your state machine.
(C) Draw the binary encoded state table. That is, make a table that shows how Q1, Q, and Y relate to Qı, Qo, N, and D.
(d) Write and simplify Boolean expressions for Q1, Q., and Y.. about the system's reset.

Engineering
1 answer:
babunello [35]3 years ago
6 0

Answer:

Check the explanation

Explanation:

A vending machine controller is that type of machine that comes with a single serial port on the same chip as the programmable processor. The controller comprises of a port arbitrator that selectively attaches or links one of a number of serially communicating devices to this single serial port.

Kindly check the attached image to get the step by step explanation to the above question.

You might be interested in
A gas cylinder is connected to a manometer that contains water. The other end of the manometer is open to the atmosphere, which
horrorfan [7]

Answer: the absolute static pressure in the gas cylinder is 82.23596 kPa

Explanation:

Given that;

patm = 79 kPa, h = 13 in of H₂O,

A sketch of the problem is uploaded along this answer.

Now

pA = patm + 13 in of H₂O ( h × density × g )

pA= 79 + (13 × 0.0254 × 9.8 × 1000/1000)

pA = 82.23596 kPa

the absolute static pressure in the gas cylinder is 82.23596 kPa

4 0
4 years ago
The natural material in a borrow pit has a mass unit weight of 110.0 pcf and a water content of 6%, and the specific gravity of
enot [183]

Answer:

A. 288,030.91 cy

B. The amount of water that must be removed from the natural material is 483541.04254 gallons of water

Explanation:

The natural material in the barrow properties are;

The mass unit weight, γ = 110.0 pcf

The water content, w = 6%

The specific gravity of the soil solids, G_s = 2.63

The desired dry unit weight, \gamma _d = 122 pcf

The water content, w₁ = 5.5 %

The net section volume, V_T = 245,000 cy = 6,615,000 ft³

A.  \gamma _d = W_s/V_T

∴ W_s = V_T × \gamma _d = 6,615,000 ft³ × 122 lb/ft³ = 807030000 lbs

w = (W_w/W_s) ×  100

∴ W_w = (w/100) × W_s = (6/100) × 807030000 lbs = 48421800 lbs

The weight of solids

W = W_s + W_w = 807030000 lbs + 48421800 lbs = 855451800 lbs

V = W/γ = 855451800 lbs/(110.0 lb/ft.³) = 7776834.54545 ft.³ = 288,030.91 cy

V = 288,030.91 cy

The amount of cubic yards of borrow required = 288,030.91 cy

B. The volume of water in the required soil is found as follows;

W_{w1} = (w₁/100) × W_s = (5.5/100) × 807030000 lbs = 44386650 lbs

The amount of water that must be added =  W_{w1} - W_w = 44386650 lbs - 48421800 lbs = -4,035,150 lbs

Therefore, 4,035,150 lbs of water must be removed

The density of water, ρ = 8.345 lbs/gal

Therefore, V = 4,035,150 lbs/(8.345 lbs/gal) = 483541.04254 gal  of water must be removed from the natural material

7 0
3 years ago
B)
Triss [41]

Answer:

2.5 is the required details

8 0
3 years ago
Implement the function lastChars() that takes a list of strings as a parameter and prints to the screen the last character of ea
Liono4ka [1.6K]

Answer:

The following program is in C++.

#include <bits/stdc++.h>

using namespace std;

void lastChars(string s)

{

   int l=s.length();

   if(l!=0)

   {

       cout<<"The last character of the string is: "<<s[l-1];

   }

}

int main() {

   string s;//declaring a string..

   getline(cin,s);//taking input of the string..

   lastChars(s);//calling the function..

return 0;

}

Input:-

Alex is going home

Output:-

The last character of the string is: e

Explanation:

In the function lastChars() there is one argument that is a string.I have declared a integer variable l that stores the length of the string.If the length of the string is not 0.Then printing the last character of the string.In the main function I have called the function lastChars() with the string s that is prompted from the user.

8 0
3 years ago
Given the inherent costs of regulation it is safe to say that there is always a negative economic impact associated with regulat
Alexus [3.1K]

the answer is true.                                     <u>                    </u>                                                              

6 0
2 years ago
Other questions:
  • A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
    7·1 answer
  • What is the perimeter of 14-7 and 3-4
    9·1 answer
  • Match the words in the left column to the appropriate blanks in the sentences on the right. Note that some words may be used mor
    14·1 answer
  • Select all of the true statements.
    14·1 answer
  • a vertical cylindrical container is being cooled in ambient air at 25 °C with no air circulation. if the initial temperature of
    12·2 answers
  • What are some possible reasons for the sudden development of the cell theory
    14·1 answer
  • A piece of corroded metal alloy plate was found in a submerged ocean vessel. It was estimated that the original area of the plat
    8·1 answer
  • Substance Specific Heat (cal/g°C) Specific Heat (J/g°C) water 1.00 4.18 steam 0.96 4.02 alcohol 0.59 2.47 ice 0.50 2.09 wood 0.4
    5·1 answer
  • Aplicación al multivibrador monoestable
    5·1 answer
  • A storage tank is purged continuously with a stream of nitrogen. The purgestream leaving the tank is saturated with the product
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!