Find Jobs
Hire Freelancers

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

$15-20 USD

Selesai
Dibuat sekitar 22 tahun yang lalu

$15-20 USD

Dibayar ketika dikirim
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 Proyek: 2847912

Tentang proyek

8 proposal
Proyek remot
Aktif 22 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$5 USD dalam 14 hari
4,9 (5 ulasan)
2,8
2,8
8 freelancer menawar dengan rata-rata $11 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
5,0 (620 ulasan)
7,7
7,7
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
4,6 (60 ulasan)
4,5
4,5
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
5,0 (7 ulasan)
4,0
4,0
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
4,9 (18 ulasan)
3,9
3,9
Avatar Pengguna
See private message.
$8,50 USD dalam 14 hari
4,0 (4 ulasan)
0,9
0,9
Avatar Pengguna
See private message.
$6,80 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
See private message.
$7,65 USD dalam 14 hari
0,0 (1 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
United States
5,0
3
Anggota sejak Feb 3, 2002

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.