Find Jobs
Hire Freelancers

a C++ version of the infix-to-postfix conversion algorithm

$15-20 USD

Завершено
Опублікований about 22 years ago

$15-20 USD

Оплачується при отриманні
Convert an ordinary infix arithmetic expression with single-digit integer such as (6+2)*5-8/4 to a postfix expression 62+5*84/-. The program should read the expression into character array "infix",and use stack functions to create the postfix expression in character array"postfix".The algorithm for creating a postfix is: 1 Push a '(' onto the stack 2 Push a ')' to the end of "infix" 3 While stack is not empty,read "infix" from Left to right and do the folllowing if the current character in infix is a digit,copy it to the next element of postfix. if the current character in infix is a '(',push it onto the stack if the current characterin infix is an operator,Pop the operator(if there are any)at the top of the stack while they have equal or higher precedence tahn the current one,and insert the popped one in postfix. if the current characterin infix is a ')',Pop operaters from the top of the stack and insert them in postfix until a'(' is at the top of the stack,and pop(and discard)the '(' from the stack. Operators(+-*/^%) Funcitons: a. converToPostfix: that converts infix to postfix b. isOperator: determine if c is an operator c. precedence: determine if precedence of operator1 is less than,equal to or greater than [login to view URL] returns -1,0 and 1,respectively. d. push: pushes value onto stack. e. pop: pops a value off stack. f. stackTop: return the top value of the stack without poppingthe stack. [login to view URL]: determine if stack is empty. [login to view URL] ## Deliverables Need it before in the morning Apr 23 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. ## Platform MS visual C++
ID проекту: 2847912

Про проект

8 пропозицій(-ї)
Дистанційний проект
Активність 22 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$5 USD за 14 дні(-в)
4,9 (5 відгуки(-ів))
2,8
2,8
8 фрілансерів(-и) готові виконати цю роботу у середньому за $11 USD
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
5,0 (620 відгуки(-ів))
7,7
7,7
Аватарка користувача
See private message.
$12,75 USD за 14 дні(-в)
4,6 (60 відгуки(-ів))
4,5
4,5
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
5,0 (7 відгуки(-ів))
4,0
4,0
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
4,9 (18 відгуки(-ів))
3,9
3,9
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
4,0 (4 відгуки(-ів))
0,9
0,9
Аватарка користувача
See private message.
$6,80 USD за 14 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$7,65 USD за 14 дні(-в)
0,0 (1 відгук)
0,0
0,0

Про клієнта

Прапор UNITED STATES
United States
5,0
3
На сайті з лют. 3, 2002

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.