Premiado

Make a program.

Requirements:

1. To build an interactive menu driven system with the following functions:

A. Convert to infix, prefix or postfix.

B. Evaluate any type of expression (infix, postfix, prefix)

C. Exit

Note: program must be able to determine the current expression before converting to the other two types. Example (sample output):

5+3 * (9-2)

This is an infix expression; do you want to convert it to (A) postfix or (B) prefix or

(C) for both? Select A, B or C option.

2. User will be given option whether to read from file (user needs to type the location of the

file) or from default input (keyboard):

• If it is read from file, the system should be able to show on screen before any of the functions mentioned is being performed.

• If it is read from default input, the system should be able to save it in a default file – [url removed, login to view]

3. All outputs are to be shown on screen:

• If the input is read from file, all outputs (correct conversion and evaluation only) should be appended in the same file.

• If the input is read from keyboard, all outputs (correct conversion and evaluation only) should be written in a default file – output.txt.

4. The program should only evaluate the following operators:

• +, -, *, /, ^ (power), (,).

5. Imbalanced parentheses must be handled correctly, example:

if there is any imbalanced parentheses occurred, the system should have alerted the user – which part with error.

Data sturctures:

6. Only singly linked list (pointer) to be used to illustrate stack. Marks will be deducted (-10%) if any other data structure other than singly linked list is implemented.

Functions:

7. Minimum SEVEN functions (exclude MAIN function)

8. Minimum SEVEN functions should have RETURN type and with minimum ONE parameters

but not more than FOUR parameters.

ALL functions must have function prototypes. Fail to do so, 5% will be deducted.

Note:

File processing – The output file or amended file should be organized in such a way that it

is easy for user to read when the program is terminated. Disorganized output or amended

file – 2% will be deducted.

Habilidades: Programação C

Ver mais: types data structure, stack programming, stack data structure example, stack data structure, sample stack program, programming expression, prefix data structure, prefix function, power program, pointer programming, pointer data structure, linked stack, expression programming, example stack data structure, data sturctures, data structure types, data structure type, data structure stack, data structure note, data structure linked list, data driven programming, programming pointer, programming operators, programming linked list, build prototypes

Acerca do Empregador:
( 9 comentários ) Semenyih, Malaysia

ID do Projeto: #6831352

7 freelancers estão ofertando em média $152 para este trabalho

vano101

Hello. I have large experience with calculating infix, postfix and prefix expressions. Also I am expert in both C and C++.

$50 USD em 1 dia
(426 Comentários)
6.5
mingzixian523

Hello, sir. I have enough experience in C programming. I can do your project. Thanks. Regards.

$252 USD in 3 dias
(11 Comentários)
4.3
juniadsarfraz

DONE Similar assignments before. Contact me ASAP. I can do this. Regards, Junaid

$155 USD in 5 dias
(3 Comentários)
1.9
qiangjin2014

A proposal has not yet been provided

$200 USD em 1 dia
(1 Comentário)
0.6
TuringIncomplete

A proposal has not yet been provided

$77 USD in 5 dias
(0 Comentários)
0.0
harshadraut

I have more tthan 6 years of experience in C and C++ Programming. I definetely can do this in given time.

$111 USD in 2 dias
(0 Comentários)
0.0
diaaalwaheidi

A proposal has not yet been provided

$222 USD in 2 dias
(0 Comentários)
0.0