Show Bid Request
Assignment5
Bid Request Id: 5158
|
|
|
Description:
Programming I Assignment #5 Stacks and Expression Evaluation (write in C++ using Visual c++ 6.0 compiler)
Implement a Stack ADT (abstract data type) as discussed in class; this involves writing a stack.h header file and a stack.cpp implementation file. Then, write prog5.cpp which should include stack.h and will be linked with the object code from stack.cpp; what your program 5 should do is to allow for integer expression evalutation. Open the file expr.txt (I will send it to u once i accept yr bid) and read in each line of text as a string which represents an integer arithmetic expression, such as ((2+3)*4)/9 -- integer constants, parentheses, and the four basic arithmetic operators. For each line of text, print it out and on the same line, lined up on the right, print the integer evaluation of the expression. Thus your output might appear as
Expression Evaluation
((2+3)*4)/9 2 5+4*8 37 (and so on)
You basically need two functions -- one for converting infix strings to postfix strings, and one for evaluating postfix strings into integer results. These will be discussed in class. Both functions involve the use of a stack.
Get postfix.c (as seen in class) here. This code basically shows the routine for converting infix strings to postfix -- but you need to do a couple of things first: 1. Write a C++ class for a stack type rather than just using an array directly. 2. Write an evaluate function that will take a postfix string and "evaluate" it. This will be discussed in class.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
Special Conditions / Other:
Fri 11/23/01
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$35 (USD)
|
Nov 19, 2001 7:40:45 PM EDT
|
9.49
(Superb)
|
|
|
Hi!
I am interested in your assignment. I have three years experience in VC++. You can also see my resume and my ratings at my rentacoder profile. I will make sure that you are more than satisfied with my work.
Regards
ZEESHAN |
|
|
|
|
|