Find Jobs
Hire Freelancers

Binary Expression Tree

$60 USD

In Progress
Posted over 7 years ago

$60 USD

Paid on delivery
This will be a project expected to be completed within 48 hours. Instructions are provided in the word doc included. This is basically what they are though. ---------------------------------------------------------------------------------------------------------------------------------------- Write a program that will accept a fully parenthesized expression from the user. The program will then build a binary tree to hold the expression. Once the tree is built the program will display the expression in prefix, infix and postfix formats. Finally, the program should evaluate the expression and print the results, e.g. an input of ((3*(8-2))-(1+9)) would produce: Infix: ((3*(8-2))-(1+9)) Postfix: 382-*19+- Prefix: -*3-82+19 ((3*(8-2))-(1+9)) = 8 Your program must support add, subtract, multiply and divide. If you want to add other binary operators (e.g. ^ or %) feel free to do so. Place your code in a loop so that the user can enter as many expressions as desired. I have attached the beginnings of a BinaryExpressionTree. Start with this code. (Do not create a completely different class ).
Project ID: 12308061

About the project

Remote project
Active 7 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

About the client

Flag of UNITED STATES
Raleigh, United States
5.0
6
Payment method verified
Member since Sep 13, 2016

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.