37
TOYS VENDING MACHINE PRESENTING BY : ZARA TARIQ INSTRUCTOR: MS SAMAN

Toys Vending Machine

Embed Size (px)

DESCRIPTION

In our toy vending machine we have defined: ○ Different levels for toys. ○ Card use for access the different levels . ○ Level’s categories are according to the age of children.

Citation preview

  • 1. TOYS VENDING MACHINEPRESENTING BY : ZARA TARIQINSTRUCTOR: MS SAMAN

2. INTRODUCTIONIn our toy vending machine we have defined: Different levels for toys. Card use for access the different levels . Levels categories are according to the age of children. 3. TRANSITION GRAPHMealy Machine 4. SOLUTIONStagesQ0 = 0Q1 = 5Q2 = 10Q3 = 15Q4 = 20Q5 = 25 & MoreLevelsLevel 1 = 0 Month To 6 Month = L1Level 2 = 7 Month To 12 Month = L2Level 3 = 1 Year To 3 Year = L3Level 4 = 4 Year To 8 Year = L4Level 5 = 9 Year To 12 Year = L5InputsWhite Card = 5 Rs = WPink Card = 10 Rs = PBlue Card = 15 Rs = BGreen Card = 20 Rs = GYellow Card = 25 Rs = Y ={ W,P,G,Y,B,L1, L2, L3, L4, L5}Output = { 1,0} 5. TRANSITION TABLEs W P B G Y L1 L2 L3 L4 L5Q0 Q1 q2 q3 q4 q5 q0 q0 q0 q0 q0Q1 Q1 q3 q4 q5 q5 q0 q1 q1 q1 q1Q2 Q3 q4 q5 q5 q5 q1 q0 q2 q2 q2Q3 Q4 q5 q5 q5 q5 q2 q1 q0 q3 q3Q4 Q5 q5 q5 q5 q5 q3 q2 q1 q0 q4Q5 Q5 q5 q5 q5 q5 q4 q3 q2 q1 q0s W P B G Y L1 L2 L3 L4 L5q0 0 0 0 0 0 0 0 0 0 0q1 0 0 0 0 0 1 0 0 0 0q2 0 0 0 0 0 1 1 0 0 0q3 0 0 0 0 0 1 1 1 0 0q4 0 0 0 0 0 1 1 1 1 0q5 0 0 0 0 0 1 1 1 1 1Output states Output states