Find Jobs
Hire Freelancers

academic c++

$30-250 USD

Abgeschlossen
Veröffentlicht vor mehr als 12 Jahren

$30-250 USD

Bezahlt bei Lieferung
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.
Projekt-ID: 1209726

Über das Projekt

1 Vorschlag
Remote Projekt
Aktiv vor 13 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hi,Please check your inbox,Thanks
$30 USD in 1 Tag
4,8 (105 Bewertungen)
5,8
5,8

Über den Kunden

Flagge von UNITED STATES
New York, United States
4,7
8
Zahlungsmethode verifiziert
Mitglied seit Sept. 16, 2011

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.