Find Jobs
Hire Freelancers

C++ Tree and arithmetic evaluation

$30-250 USD

Closed
Posted over 11 years ago

$30-250 USD

Paid on delivery
The second project involves completing and modifying the C++ program that evaluates statements of an expression language contained in the module 3 case study. The statements of that expression language consist of an arithmetic expression followed by a list of assignments. Assignments are separated from the expression and each other by commas. A semicolon terminates the expression. The arithmetic expressions are fully parenthesized infix expressions containing integer literals and variables. The valid operators are +, –, *, /. Tokens can be separated by any number of spaces. Variable names begin with an alphabetic character, followed by any number of alphanumeric characters. Variable names are case sensitive. This syntax is described by BNF and regular expressions in the case study. The program reads in the arithmetic expression and encodes the expression as a binary tree. After the expression has been read in, the variable assignments are read in and the variables and their values of the variables are placed into the symbol table. Finally the expression is evaluated recursively. Your first task is to complete the program provided by providing the three missing classes, Minus, Times and Divide. Next, you should modify the program to detect and report the following error conditions: • Division by zero should be reported as a division error and the program should proceed to the next expression. • Input containing uninitialized variables should be reported as an initialization error and the program should proceed to the next expression. • Variables initialized but never used should be reported as a warning. • Syntax errors including mismatched parentheses, invalid operator, missing comma, semicolon or assignment operator should be reported as a syntax error and the program should proceed to the next expression.
Project ID: 4044010

About the project

12 proposals
Remote project
Active 11 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
12 freelancers are bidding on average $59 USD for this job
User Avatar
Hi, I'd like to do this project please.
$50 USD in 0 day
5.0 (625 reviews)
7.2
7.2
User Avatar
Hello, I am expert and dedicated in C/C++ Development.I am very much interested for your project. I can complete your project quickly and efficiently in time. Details will be discussed in the message.
$100 USD in 1 day
4.7 (192 reviews)
6.5
6.5
User Avatar
Hi, i can help
$30 USD in 5 days
4.7 (18 reviews)
4.7
4.7
User Avatar
Let me complete your project!
$120 USD in 5 days
4.1 (10 reviews)
4.1
4.1
User Avatar
Hi! I have years of C++ experience. I have read your requirements and I can do this immediately. I guarantee clean, understandable, and commmented C++ code.
$40 USD in 1 day
5.0 (7 reviews)
3.2
3.2
User Avatar
Hi i can do this for you please check pmb
$30 USD in 1 day
4.6 (4 reviews)
2.5
2.5
User Avatar
Hi sir. I am ready to work for you. Please check your PM.
$45 USD in 1 day
5.0 (1 review)
1.8
1.8
User Avatar
Work will be done!
$30 USD in 4 days
5.0 (1 review)
0.0
0.0
User Avatar
hello sir, i have Bsc in computer science and i did this kind of assigments before,i can do your project for you
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I've done this kind of assignment in my college, let me do that for you.
$50 USD in 4 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I can do this project. I have done Computer Language Theory for B.Sc. and came a cross parsing of custom language grammers. Please check PM as well.
$100 USD in 7 days
0.0 (1 review)
0.0
0.0
User Avatar
i have done bca and i have also work on this type of project before.
$85 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
New Delhi, India
4.9
16
Payment method verified
Member since Aug 24, 2008

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.