A. Simbol "a" berjumlah Genap

Automaton yang akan memeriksa apakah simbol 'a' berjumlah genap:

  • a - > ganjil
  • aa - > genap
  • abaa - > ganjil
  • abaaa - > genap
  • abbab - > genap
  • bbbbb - > genap


  • bbbbb -> unknown

B. Lampu Lalu Lintas

Salah satu kemungkinan state diagram dari lampu lalu lintas:


C. Mesin Penjaja Kopi

This automaton is a sort of dumb coffee machine. It will accept payment with coins of 5, 10 or 20 cents. It will give the coffee when the payment is more than 25 cents wihout giving change.

Examples:

  • 20,20 -> coffee
  • 20,5 -> coffee
  • 10,5 -> 15 (Insufficient payment)
  • 5,5 -> 10 (Insufficient payment)

D. Call-Center

https://tirtabhagasasi.co.id/call-center/


E. Input Alphanumerik

EOL: End of Line