Find Jobs
Hire Freelancers

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

$20-25 USD

Fechado
Publicado há quase 22 anos

$20-25 USD

Pago na entrega
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 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 do Projeto: 2847087

Sobre o projeto

48 propostas
Projeto remoto
Ativo há 22 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
48 freelancers estão ofertando em média $15 USD for esse trabalho
Avatar do Usuário
See private message.
$12,75 USD em 14 dias
5,0 (620 avaliações)
7,7
7,7
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
4,1 (49 avaliações)
6,3
6,3
Avatar do Usuário
See private message.
$8,50 USD em 14 dias
4,4 (72 avaliações)
5,5
5,5
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
4,6 (66 avaliações)
5,1
5,1
Avatar do Usuário
See private message.
$17 USD em 14 dias
5,0 (60 avaliações)
5,0
5,0
Avatar do Usuário
See private message.
$19,55 USD em 14 dias
5,0 (43 avaliações)
4,8
4,8
Avatar do Usuário
See private message.
$12,75 USD em 14 dias
4,6 (60 avaliações)
4,5
4,5
Avatar do Usuário
See private message.
$8,50 USD em 14 dias
5,0 (35 avaliações)
4,3
4,3
Avatar do Usuário
See private message.
$17 USD em 14 dias
5,0 (32 avaliações)
4,2
4,2
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
5,0 (7 avaliações)
4,0
4,0
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
4,9 (18 avaliações)
3,9
3,9
Avatar do Usuário
See private message.
$17 USD em 14 dias
4,5 (40 avaliações)
3,9
3,9
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
4,7 (14 avaliações)
3,5
3,5
Avatar do Usuário
See private message.
$8,50 USD em 14 dias
4,2 (6 avaliações)
3,6
3,6
Avatar do Usuário
See private message.
$18,70 USD em 14 dias
4,7 (32 avaliações)
3,3
3,3
Avatar do Usuário
See private message.
$8,50 USD em 14 dias
4,5 (17 avaliações)
3,3
3,3
Avatar do Usuário
See private message.
$12,75 USD em 14 dias
5,0 (2 avaliações)
2,9
2,9
Avatar do Usuário
See private message.
$10,20 USD em 14 dias
4,9 (5 avaliações)
2,8
2,8
Avatar do Usuário
See private message.
$17 USD em 14 dias
5,0 (10 avaliações)
2,6
2,6
Avatar do Usuário
See private message.
$17 USD em 14 dias
5,0 (1 avaliação)
1,9
1,9

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
3
Membro desde fev. 3, 2002

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.