Find Jobs
Hire Freelancers

C++ Assignment using Template Class, A stack data structure, Class design, Notations (infix and postfix )

$15-20 USD

In Progress
Posted over 20 years ago

$15-20 USD

Paid on delivery
The purpose of this assignment is to experience with: •Template Class •A stack data structure •Class design •Notations: infix and postfix In each class, you can add any public/private variables/functions, but you have to specify the purpose of these variables/functions as comments. Problem Specification Stacks are used by compilers to help in the process of evaluating expressions and generating machine language code. In this assignment, you are to investigate how compilers evaluate arithmetic expressions consisting only of constants, operators and parentheses. All the operations in this assignment are based on integer numbers ONLY. Human generally write expressions like 3 + 4 and 7 / 9 in which the operator (+ or / here) is written between its operands-this is called infix notation. Computers "prefer" postfix notation in which the operator is written to the right of its two operands. The preceding infix expressions would appear in postfix notation as 3 4 + and 7 9 /, respectively. To evaluate a complex infix expression, a compiler would first convert the expression to postfix notation and then evaluate the postfix version of the expression. Each of these algorithms requires only a single left-to-right pass of the expression. Each algorithm uses a stack object in support of its operation, and in each algorithm the stack is used for a different purpose. In this assignment, you are to write a C++ version of the infix-to-postfix conversion algorithm, together with a C++ version of the postfix expression evaluation algorithm. In fact, this code will help you to implement a complete working compiler. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site). 4)You should submit a header file (.h) file for all the classes and one cpp file for all the function definitions. ## Platform windows xp and windows 2000 and use borland C++ for programming the assignment.
Project ID: 3062749

About the project

2 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$10 USD in 2 days
3.0 (1 review)
0.9
0.9
2 freelancers are bidding on average $14 USD for this job
User Avatar
See private message.
$17 USD in 2 days
5.0 (6 reviews)
3.8
3.8

About the client

Flag of UNITED ARAB EMIRATES
United Arab Emirates
5.0
9
Member since Apr 18, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.