Find Jobs
Hire Freelancers

academic c++

$30-250 USD

Fullført
Lagt ut over 12 år siden

$30-250 USD

Betalt ved levering
1. Create a class called Polynomial that represents a polynomial as an array of terms. Each term contains a coefficient and an exponent. For instance, the term 5x3 has a coefficient 5 and an exponent 3. The class should provide the following overloaded operators: a) The addition operator (+) to add two polynomials. b) The subtraction operator (-) to subtract two polynomials. c) The multiplication operator (*) to multiply two polynomials. In addition, write a simple client program to demonstrate the correctness of the class implementation. 2. Create a Stack class template using a standard C++ array (as discussed in class). Assume that the stack has a fixed size (100 elements), and provide an implementation for the push, pop, and peek functions. Note that the push function should check for a full stack, while the pop and peek functions should check for an empty stack. Next, write a client program to convert an infix expression to a postfix one (as discussed in class), using the Stack template that you created. The program should first prompt the user to enter the infix expression, and then display the corresponding postfix expression on the screen. Assume that only single-digit numbers will be entered (i.e., you can simply use a char stack) and that the infix expression is entered correctly.
Prosjekt-ID: 1209726

Om prosjektet

1 forslag
Eksternt prosjekt
Aktiv 13 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
Hi,Please check your inbox,Thanks
$30 USD om 1 dag
4,8 (105 omtaler)
5,8
5,8

Om klienten

UNITED STATESs flagg
New York, United States
4,7
8
Betalingsmetode bekreftet
Medlem siden sep. 16, 2011

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.