0% found this document useful (0 votes)
77 views2 pages

Take Home Test

The document describes a finite state automaton (FSA) for adding credit to a prepaid phone number in Indonesia. The FSA has 11 states - digits 0-9, *, #, yes, no - and transitions between states based on input symbols. It implements the process of entering a voucher code starting with *556# followed by digits and ending with # to add credit or rejecting the code by entering #.

Uploaded by

Henra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views2 pages

Take Home Test

The document describes a finite state automaton (FSA) for adding credit to a prepaid phone number in Indonesia. The FSA has 11 states - digits 0-9, *, #, yes, no - and transitions between states based on input symbols. It implements the process of entering a voucher code starting with *556# followed by digits and ending with # to add credit or rejecting the code by entering #.

Uploaded by

Henra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Take Home Test AUTOMATA

FSA untuk pengisian pulsa dengan fitur yang di berikan oleh provider indosat Dengan cara *556*(kode voucher)# yes

selain 5,*,#

5
b
selain 6,*,#

6
digit(0-9)

5 * S a d * f # g no
digit(0-9) selain 5,*,#

yes i

digit(0-9), *,#

Q S F

= { S,a,b,c,d,e,f,g,h,i,j } = { digit(0-9), *, #, 5, 6, selain 5, selain 6, yes, no } = S = {i}


S a b c d e f g h i

Digit (0-9) e e f

* a e e e f e

# e e e e e e g

5 b c

6 d

Selain 5 e e

Selain 6 e

yes i

no h

You might also like