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 of data structure, types data structure, stack programming, stack of data structure, stack in data structure with example, stack in data structure, stack data structure, sample stack program in c, programming operators, programming in data structure, programming expression, prefix in data structure, prefix function, power program in c, pointer programming, pointer in data structure, pointer data structure, make prototypes, linked stack, linked list in data structure, linked list data structure, is in a prefix, expression in c programming, example of stack in data structure, data sturctures

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