Find Jobs
Hire Freelancers

academic c++

$30-250 USD

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

$30-250 USD

Оплачується при отриманні
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.
ID проекту: 1209726

Про проект

1 пропозиця
Дистанційний проект
Активність 13 yrs ago

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

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

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Hi,Please check your inbox,Thanks
$30 USD за 1 день
4,8 (105 відгуки(-ів))
5,8
5,8

Про клієнта

Прапор UNITED STATES
New York, United States
4,7
8
Спосіб оплати верифіковано
На сайті з вер. 16, 2011

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

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