Make a program.


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.


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.


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 are bidding on average $152 for this job


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)

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

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

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

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

A proposal has not yet been provided

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

A proposal has not yet been provided

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

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)

A proposal has not yet been provided

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