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
Find: factor of safety (n)for point A and B by using both MSS and DE (you can neglect shear stress due to shear force and also n
gladu [14]

Answer:

Hello your question is incomplete attached below is the complete question

Answer : Factor of safety for point A :

i) using MSS

(Fos)MSS =  3.22

ii) using DE

(Fos)DE = 3.27

Factor of safety for point B

i) using MSS

(Fos)MSS =  3.04

ii) using DE

(Fos)DE = 3.604

Explanation:

Factor of safety for point A :

i) using MSS

(Fos)MSS =  3.22

ii) using DE

(Fos)DE = 3.27

Factor of safety for point B

i) using MSS

(Fos)MSS =  3.04

ii) using DE

(Fos)DE = 3.604

Attached below is the detailed solution

8 0
3 years ago
What is the metal removal rate when a 2 in-diameter hole 3.5 in deep is drilled in 1020 steel at cutting speed of 120 fpm with a
Studentka2010 [4]

Answer:

a) the metal removal rate is 14.4 in³/min

b) the cutting time is 0.98 min

Explanation:

Given the data from the question

first we find the rpm for the spindle of the drilling tool, using the equation

Ns = 12V/πD

V is the cutting speed(120 fpm) and D is the diameter of the hole( 2 in)

so we substitute

Ns = 12 × 120 / π2

Ns = 1440 / 6.2831

Ns = 229.18 rmp

Now we find the metal removal rate using the equation

MRR = (πD²/4) Fr × Ns

Fr is the feed rate( 0.02 ipr ),

so we substitute

MRR = ((π × 2²)/4) × 0.02 × 229.18

MRR = 14.3998 ≈ 14.4 in³/min

Therefore the metal removal rate is 14.4 in³/min

Next we find the allowance for approach of the tip of the drill

A = D/2

A = 2/2

= 1 in

now find the time required to drill the hole

Tm = (L + A) / (Fr × Ns)

Lis the the depth of the hole( 3.5 in)

so we substitute our values

Tm = (3.5 + 1) / (0.02 × 229.18  )

Tm = 4.5 / 4.5836

Tm = 0.98 min

Therefore the cutting time is 0.98 min

8 0
2 years ago
An insulated piston-cylinder device contains 0.15 of saturated refrigerant-134a vapor at 0.8 MPa pressure. The refrigerant is no
Stells [14]

Answer:

Assumption:

1. The kinetic and potential energy changes are negligible

2. The cylinder is well insulated and thus heat transfer is negligible.

3. The thermal energy stored in the cylinder itself is negligible.

4. The process is stated to be reversible

Analysis:

a. This is reversible adiabatic(i.e isentropic) process and thus s_{1} =s_{2}

From the refrigerant table A11-A13

P_{1} =0.8MPa   \left \{ {{ {{v_{1}=v_{g}  @0.8MPa =0.025645 m^{3/}/kg } } \atop { {{u_{1}=u_{g}  @0.8MPa =246.82 kJ/kg } -   also  {{s_{1}=s_{g}  @0.8MPa =0.91853 kJ/kgK } } \right.

sat vapor

m=\frac{V}{v_{1} } =\frac{0.15}{0.025645} =5.8491 kg\\and \\\\P_{2} =0.2MPa  \left \{ {{x_{2} =\frac{s_{2} -s_{f} }{s_{fg }}=\frac{0.91853-0.15449}{0.78339}   = 0.9753 \atop {u_{2} =u_{f} +x_{2} }(u_{fg}) =  38.26+0.9753(186.25)= 38.26+181.65 =219.9kJ/kg \right. \\s_{1} = s_{2}

T_{2} =T_{sat @ 0.2MPa} = -10.09^{o}  C

b.) We take the content of the cylinder as the sysytem.

This is a closed system since no mass leaves or enters.

Hence, the energy balance for adiabatic closed system can be expressed as:

E_{in} - E_{out}  =ΔE

w_{b, out}  =ΔU

w_{b, out} =m([tex]u_{1} -u_{2)

w_{b, out}  = workdone during the isentropic process

=5.8491(246.82-219.9)

=5.8491(26.91)

=157.3993

=157.4kJ

4 0
3 years ago
Problem 4.079 SI A rigid tank whose volume is 3 m3, initially containing air at 1 bar, 295 K, is connected by a valve to a large
salantis [7]

Answer:

Q_{cv} = -1007.86kJ

Explanation:

Our values are,

State 1

V=3m^3\\P_1=1bar\\T_1 = 295K

We know moreover for the tables A-15 that

u_1 = 210.49kJ/kg\\h_i = 295.17kJkg

State 2

P_2 =6bar\\T_2 = 296K\\T_f = 320K

For tables we know at T=320K

u_2 = 228.42kJ/kg

We need to use the ideal gas equation to estimate the mass, so

m_1 = \frac{p_1V}{RT_1}

m_1 = \frac{1bar*100kPa/1bar(3m^3)}{0.287kJ/kg.K(295k)}

m_1 = 3.54kg

Using now for the final mass:

m_2 = \frac{p_2V}{RT_2}

m_2 = \frac{1bar*100kPa/6bar(3m^3)}{0.287kJ/kg.K(320k)}

m_2 = 19.59kg

We only need to apply a energy balance equation:

Q_{cv}+m_ih_i = m_2u_2-m_1u_1

Q_{cv}=m_2u_2-m1_u_1-(m_2-m_1)h_i

Q_{cv} = (19.59)(228.42)-(3.54)(210.49)-(19.59-3.54)(295.17)

Q_{cv} = -1007.86kJ

The negative value indidicates heat ransfer from the system

7 0
3 years ago
The time factor for a doubly drained clay layer
Margarita [4]

Answer with Explanation:

Assuming that the degree of consolidation is less than 60% the relation between time factor and the degree of consolidation is

T_v=\frac{\pi }{4}(\frac{U}{100})^2

Solving for 'U' we get

\frac{\pi }{4}(\frac{U}{100})^2=0.2\\\\(\frac{U}{100})^2=\frac{4\times 0.2}{\pi }\\\\\therefore U=100\times \sqrt{\frac{4\times 0.2}{\pi }}=50.46%

Since our assumption is correct thus we conclude that degree of consolidation is 50.46%

The consolidation at different level's is obtained from the attached graph corresponding to Tv = 0.2

i)\frac{z}{H}=0.25=U=0.71 = 71% consolidation

ii)\frac{z}{H}=0.5=U=0.45 = 45% consolidation

iii)\frac{z}{H}=0.75U=0.3 = 30% consolidation

Part b)

The degree of consolidation is given by

\frac{\Delta H}{H_f}=U\\\\\frac{\Delta H}{1.0}=0.5046\\\\\therefore \Delta H=50.46cm

Thus a settlement of 50.46 centimeters has occurred

For time factor 0.7, U is given by

T_v=1.781-0.933log(100-U)\\\\0.7=1.781-0.933log(100-U)\\\\log(100-U)=\frac{1.780-.7}{0.933}=1.1586\\\\\therefore U=100-10^{1.1586}=85.59

thus consolidation of 85.59 % has occured if time factor is 0.7

The degree of consolidation is given by

\frac{\Delta H}{H_f}=U\\\\\frac{\Delta H}{1.0}=0.8559\\\\\therefore \Delta H=85.59cm

5 0
3 years ago
Other questions:
  • A liquid refrigerant (sg=1,2) is flowing at a weight flow rate of 20,9 N/h. Refrigerant flashes into a vapor and its specific we
    15·1 answer
  • If the efficiency of the boiler is 91.2 % , the overall efficiency of the turbine, which includes the Carnot efficiency and its
    5·1 answer
  • Air enters a compressor operating at steady state at 176.4 lbf/in.^2, 260°F with a volumetric flow rate of 424 ft^3/min and exit
    10·1 answer
  • I have a stream with three components, A, B, and C, coming from another process. The stream is 50 % A, and the balance is equal
    11·1 answer
  • Airplanes typically have a Pitot-static probe located on the underside that measures relative wind speed as the airplane flies.
    6·1 answer
  • Can U lose a rank in Brainly by using too many points?
    6·1 answer
  • 8. What is the purpose of the 300 Log?
    12·1 answer
  • Jack has been concerned about the rapidly changing green regulations in his state and his ability as a mechanical engineer to ke
    13·1 answer
  • NO SCAMS
    9·2 answers
  • Please help me with this question
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!