Find Jobs
Hire Freelancers

C++ Program

$30-250 USD

Terminado
Publicado hace más de 10 años

$30-250 USD

Pagado a la entrega
The second project involves completing and extending 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 arithmetic 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 XXXXX XXXXX XXXX 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 extend the program so that it supports relational, logical and conditional expression operators as defined by the following extension to the grammar: -> '(' ')' | '(' ':' '?' ')' | '(' '!' ')' -> '+' | '-' | '*' | '/' | '>' | '<' | '=' | '&' | '|' Note that there are a few differences in the use of these operators compared to their customary use in the C family of languages. There differences are • In the conditional expression operator the symbols are reversed and the third operand represents the condition. The first operand is the value when true and the second the value when false • The logical operators use single symbols not double, for example the and operator is & not && • The negation operator ! is a postfix operator, not a prefix one • There are only three relational operators not the usual six and the operator for equality is = not == Like C and C++, any arithmetic expression can be interpreted as a logical value, taking 0 as false and anything else as true Your final task is to make the following two modifications to the program: • The program should accept input from a file, allowing for multiple expressions arranged one per line. Some hints for accomplishing this transformation will be provided in the conference • All results should be changed from double to int. In particular the evaluate function should return an int. You may assume that all input to the program is syntactically correct. You are to submit the source code for the entire program in a .zip file. Your program must compile with Microsoft Visual C++. Read more: The second project involves completing and extending the C++ - JustAnswer [login to view URL]
ID del proyecto: 5219249

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
..... Hello Expert here I have many years experienced in this field so you can trust me thanks........
$222 USD en 2 días
5,0 (1 comentario)
0,0
0,0
3 freelancers están ofertando un promedio de $252 USD por este trabajo
Avatar del usuario
hi.. i can do this. please let me know to start. initiate communication to discuss further. i can deliver you on time. thanks
$200 USD en 3 días
4,9 (12 comentarios)
3,8
3,8
Avatar del usuario
https://www.freelancer.com/u/bollbba.html why you chose us have 5/5 rating with 100% complete rate with here have a little company too so you can depend on us . We provide you industry standard Mobile Apps, Software, Desktop Apps, Web Stores, Websites and Web Apps. So, you get all at one place! We can provide you the following: - iOS applications - Android applications - Software for all purposes - Desktop applications - Websites - Web applications - Ecommerce websites/ Web stores We specialize in: - Objective C, Cocoa, iOS 4, 5, 6 - Java, Google Android - WordPress, Joomla - WP Ecommerce, Magento - PHP5, PHP, MySQL - C#, C++, C - ActionScript 3.0, AIR, XML .for more discussion add my SK-YPE softerbd we can discuss more its will be more than easier both of us regard
$141 USD en 4 días
5,0 (3 comentarios)
0,8
0,8
Avatar del usuario
Dear Sir, We would love to get this opportunity of working with you. We can guarantee that you will not regret your decision if you select us to execute this project.
$30 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
------------I am expert in this field . I will provide you 100% satisfaction .My aim is satisfaction .For previous work sample discuss project with me ....Many Thanks me in advanced for considering my bid -----------
$250 USD en 3 días
0,0 (2 comentarios)
0,0
0,0
Avatar del usuario
lets do it.......................................................................................................................................
$333 USD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Gaithersburg, United States
5,0
3
Forma de pago verificada
Miembro desde dic 11, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.