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
KatRina [158]
3 years ago
13

You are to design the control for an automatic candy vending machine. The candy bars inside the machine cost 25 cents, and the m

achine accepts nickels, dimes, and quarters only. The inputs to the control are a set of three signals that indicate what kind of coin has been deposited, as well as a reset signal. The control should generate an output signal that causes the candy to be delivered whenever the amount of money received is 25 cents or more no change is given . Once the candy has been delivered, some external circuitry will generate a reset signal to put the control back into its initial state.
Required:
a. Identify your inputs and outputs, and draw the ASM chart that implements this finite state machine.
b. Assuming no change given, draw a state diagram that implements the finite state machine.
c. Implement the finite state machine using D, T and JK flip-flops. You may use gray code state assignment.
d. Verify the D flip-flop implementation in (b).
e. Write Verilog HDL models for the machine based on the state diagram in (a) and the D flip-flop sequential circuit that you implement in (b).
f. Modify your control design such that the vending machine may give change if more than 25 cents is deposited. You do not have to implement your design. State diagram is sufficient.
Engineering
1 answer:
labwork [276]3 years ago
6 0

Answer:

I believe that it is E. Write Verilog HDL models for the machine based on the state diagram in (a) and the D flip-flop sequential circuit that you implement in (b).

You might be interested in
A steam power plant operates on an ideal Rankine cycle with two stages of reheat and has a net power output of 120 MW. Steam ent
uysha [10]

Answer:

a) 40.6%

b)72.19kg/s

Explanation:

The Rankine cycle with two reheat stages has 9 stages in total.

The maximum pressure will be at the first inlet stage of the HP turbine which is stage 3. The minimum pressure will be the exit stage of the condenser because the condenser operates under vacuum pressure which is stage 1.

The following assumptions can be made:

1 - Each component in the cycle is analyzed as an open system operating at steady-state.

  2 - All of the processes are internally reversible.

  3 - The turbine and pump operate adiabatically and are internally reversible, so they are also isentropic.

   4 - Condensate exits the condenser as saturated liquid.

  5 - The effluent from the HP turbine is a saturated vapor.

  6 - No shaft work crosses the system boundary of the boiler or condenser.

   7 - Changes in kinetic and potential energies are negligible

a) The thermal efficiency of the cycle is defined as the work of the cycle divided by the total heat input to the system. The stages that have heat input is stages 2-3, 4-5, 6-7.

For stage 2:

s₁=s₂ assuming isentropic

s_1=0.4762 @ P_1=15MPa

enthalpy will be a compressed liquid so after interpolation

h_2=97.93+(0.4762-0.2932)((180.77-97.93)/(0.5666-0.2932))=153.38kJ/kg

For stage 3:

Superheated steam @ T=500⁰C and P=15MPa

h_3=3310.8kJ/kg

Stage 4:

superheated vapor

P=5MPa

s₃=s₄=6.3480 kJ/kg, we must use interpolation to find h₄

h_4=2925.7-(6.348-6.2111)((3069.3-2925.7)/(6.4516-6.2111))=3007.44kJ/kg

Stage 5:

Superheated steam @ T=500⁰C and P₄=P₅=5 MPa

h_5=3434.7kJ/kg

Stage 6:

Superheated steam at P₆= 1MPa

s₅=s₆

s_6=6.9781

We find h₆ using interpolation from the steam tables:

h_6=2943.1-(6.9781-6.9265)((3051.6-2943.1)/(7.1246-6.9265))=2970.67kJ/kg

Stage 7:

P₇=P₆=1MPa

T=500⁰C superheated steam

h_7=3479.1kJ/kg

The heat into the cycle is:

=(h_3-h_2)+(h_5-h_4)+(h_7-h_6)

=(3310.8-153.38)+(3434.7-3007.44)+(3479.1-2970.67)=4108.74kJ/kg

We can determine the work out by the condenser from stage 9 to stage 1:

Stage 1:

saturated liquid P=5kPa

h_1=137.75kJ/kg

Stage 9:

We assume that its a saturated liquid with quality of 1 at 5kPa and

s₇=s₉ and after interpolation

h_9=2568.53kj/kgK

Qout = [/tex]2568.53-137.75=2430.79kJ/kg[/tex]

The thermal efficiency can be written in terms of qin and qout:

n=1-(q_o/q_i)=1-2430.79/4093.11=0.4061

Efficiency of 40.61%

b)

The mass flow rate can be calculated from the Wnet:

W_n=W_t-W_p

Work of the turbines minus the work of the pumps:

W_n=m((h_3-h_4)+(h_5-h_6)+(h_7-h_9)-(h_1-h_2)

120000=m(1662.33)

m=72.19

mass flow rate of steam is 72.19 kg/s

7 0
3 years ago
A flame ionization detector, which is often used in gas chromatography, responds to a change in
Lena [83]

Answer:

Option A

Explanation:

We know that ions are present in hydrogen-air flame and when the burning of an organic compound takes place in this flame more ions are produced in the flame.  

Thus when we apply a voltage across this flame, the ion collector plate attracts the all the ions in the flame.

The presence of organic compounds increases the voltage across the hydrogen ion flame produced at the ion collector increases and as the voltage increases, the detection of the organic compound can be made in turn.

Thus flame ionization detector clearly responds to the variation in the collection of ions or electrons in a flame.

3 0
4 years ago
Air at 40C flows over a 2 m long flat plate with a free stream velocity of 7 m/s. Assume the width of the plate (into the paper)
mezya [45]

Complete Question

Air at 40C flows over a 2 m long flat plate with a free stream velocity of 7m/s. Assume the width of the plate (into the paper) is 0.5 m. If the plate is at a co temperature of 100C,find:

The total heat transfer rate from the plate to the air

Answer:

q=1.7845

Explanation:

From the question we are told that:

Air Temperature T_1=40c

Length l=2m

Velocity v=7m/s

Width w=0.5

Constant temperature T_t= 100C

Generally the equation for Total heat Transfer is mathematically given by

 q=hA(T_s-T_\infty)

Where

h=Convective heat transfer coefficient

 h=29.9075w/m^2k

Therefore

 q=h(L*B)(T_s-T_\infty)

 q=29.9075*(2*0.5)(100+273-(40+273))

 q=1794.45w

 q=1.7845

5 0
3 years ago
Omg I just got 17/25 questions wrong using this on an Ag test , but got 100’s every time on health
Fudgin [204]

Answer:

sorry im answering questions for the points cuz im built dfferent

Explanation:

5 0
3 years ago
Read 2 more answers
What is the first test you should do when checking the charging system?
yan [13]

Answer:

Connect the test light in series with the negative post, and start pulling feed wires. The first to check is the heavy charging wire from the alternator. A bad or leaky diode in an alternator is a very common source of overnight battery drain. Connect wires one at a time to see what lead is drawing current.

8 0
2 years ago
Other questions:
  • A contractor needs to excavate 50,000 yd3 of silty clay and haul it with Caterpillar 69C dump trucks. Each truck can carry 30.9
    13·1 answer
  • if a voltage is applied to a capacitor, current flows easily at first and then slows as the capacitor becomes charged. Inductors
    5·1 answer
  • What are the important things to remember when arriving for an interview?
    15·1 answer
  • With a reservoir pressure of 1.0 MPa and temperature of 750 K, air enters a converging-diverging nozzle, in a steady fashion. Fl
    5·1 answer
  • A civil engineer is analyzing the compressive strength of concrete. The compressive strength is approximately normal distributed
    7·1 answer
  • Certain pieces made by an acoustic lathe are subject to three kinds of defects X,Y,Z. A sample of 100 pieces was inspected with
    6·1 answer
  • El tiempo hasta que falle un sistema informático sigue una distribución Exponencial con media de 600hs. (Utilice 3 decimales par
    13·1 answer
  • CNG is a readily available alternative to _________.
    9·1 answer
  • Which one of the following best defines hardness: (a) energy absorbed by a material when an object strikes its surface, (b) resi
    8·1 answer
  • If a bearing needs 4. 0 s to solidify enough for impact, how high must the tower be?.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!