Find Jobs
Hire Freelancers

fsm using linked lists

$30-5000 USD

Completato
Pubblicato circa 22 anni fa

$30-5000 USD

Pagato al completamento
A finite state Machine (FSM) consists of states, a set of transitions, and a string of input data. In the FSM in the figure, the ovals are represent the states, and the arrows connecting them represent the transitions. The FSM is designed to determine whether a string is a valid C++ identifier, a number, or not a valid identifier. A valid C++ identifier begins with a letter, which is followed by any number of letters, digits or an underscores '_'. The strings are always separated by a comma and the input is terminated by a period. Figure 1: FSM for recognizing valid C++ identifiers This is a modification of the first programming assignment. This time you will need to store all the tokens in one of the linked lists. So again you will need to have a a program to simulate the FSM in the figure (same as before). Input will be an arbitrary long list of comma ',' separated sections of characters (tokens) terminated by a period '.'. There will not be more than 80 characters per line and no token will be divided into two or more lines (every line ends to a comma). This time if there is a command as a token your program will have to take the action to be defined for that command. The first time you encounter a token it needs to be inserted into a linked list for the correct type of token and if the same token occurs again, it needs to be removed from the list of single instances of a token and inserted into a list of tokens of certain type with multiple instances. Also you will need to implement a set of tokens that your program needs to understand as requests for output. All command are single character. The following tokens will be valid commands for this program: v - print the lists for valid identifiers i - print the lists for invalid identifiers n - print the lists for numbers k - print the lists for key words a - print all lists Note that the commands do not need to be on their own line even though they are in the example for clarity. this,2,is,o,4of,3,#sample,3,is,8,Set, v, of,2,data,4,with,6,and,atleast,3,identifiers, n, and,4of,them,arenotvalid,%identifiers, i, or,numbers,l, a,. Your output is to contain a line of output for each element in the input, output of each command is to be separated by a line: Printing valid identifiers: - Single instance: o, Set - Multiple instances: is ------------------------------------------ Printing numbers: - Single instance: 8, 6 - Multiple instanc ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform unix based ,g++ ## Deadline information assignmment to be submitted for my class...i dont have time to do it!!!!
Rif. progetto: 2839330

Info sul progetto

15 proposte
Progetto a distanza
Attivo 22 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
Assegnato a:
Avatar dell'utente
See private message.
$21,25 USD in 14 giorni
5,0 (1 valutazione)
0,7
0,7
15 freelance hanno fatto un'offerta media di $49 USD
Avatar dell'utente
See private message.
$38,25 USD in 14 giorni
4,9 (140 valutazioni)
5,8
5,8
Avatar dell'utente
See private message.
$29,75 USD in 14 giorni
5,0 (78 valutazioni)
5,2
5,2
Avatar dell'utente
See private message.
$21,25 USD in 14 giorni
5,0 (60 valutazioni)
5,0
5,0
Avatar dell'utente
See private message.
$42,50 USD in 14 giorni
4,9 (19 valutazioni)
4,8
4,8
Avatar dell'utente
See private message.
$68 USD in 14 giorni
4,7 (41 valutazioni)
4,7
4,7
Avatar dell'utente
See private message.
$106,25 USD in 14 giorni
4,9 (18 valutazioni)
3,9
3,9
Avatar dell'utente
See private message.
$17 USD in 14 giorni
5,0 (51 valutazioni)
3,2
3,2
Avatar dell'utente
See private message.
$21,25 USD in 14 giorni
4,8 (16 valutazioni)
3,1
3,1
Avatar dell'utente
See private message.
$34 USD in 14 giorni
4,5 (17 valutazioni)
3,3
3,3
Avatar dell'utente
See private message.
$63,75 USD in 14 giorni
4,7 (32 valutazioni)
3,3
3,3
Avatar dell'utente
See private message.
$38,25 USD in 14 giorni
4,5 (15 valutazioni)
2,7
2,7
Avatar dell'utente
See private message.
$170 USD in 14 giorni
0,0 (1 valutazione)
0,8
0,8
Avatar dell'utente
See private message.
$42,50 USD in 14 giorni
0,0 (1 valutazione)
0,0
0,0
Avatar dell'utente
See private message.
$21,25 USD in 14 giorni
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: UNITED STATES
United States
0,0
0
Membro dal feb 19, 2002

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.