.С++ код.
300 UAHЗдравствуйте, мне нужно быстро написать код. (за пол часа)
Define an abstract class Profit with a text description, a name of an employer, a method providing the number of Profits available and the pure virtual method getGain computing the real gain of a profit.
Define the following classes inherited from the Profit:
ChargedProfit representing a profit with a single income value and a cost of outcomes (the gain of the profit is the subtraction of the two values),
TaxedProfit representing a profit with a single income value and a percent of taxes (the gain of the profit is the income reduced by the percentage),
MultiProfit representing a profit with a single income value gained repeatedly (the gain of the profit is the multiplication of the income value).
Override, for each of the above classes, the virtual method getGain, making it to return the real gain of a profit of the given class. Implement all the constructors, destructors, getters, setters and exceptions which make the functionality of the classes complete, and all the other methods and exceptions necessary to run the code provided below.
Define the class Revenue with a year number, a maximal gain and a dynamic list of the profits received. Implement the following public methods of the class:
a one enabling to add a new profit of an arbitrary type to the revenue list on the first position of the list (with the control of the maximal gain, OverflowError should be thrown if the maximal gain could be exceeded),
a one enabling to add a new profit of an arbitrary type to the revenue list on the last position of the list (with the control of the maximal gain, too),
a one enabling to remove the last profit from the revenue (throwing the EmptyError exception if the list is empty),
a one enabling to remove all the profits from the list,
a method returning the summary gain of all the profits in the revenue.
Overload the indexing operator ([]) for the Revenue to have a direct access to the profit on the particular position in the list (throwing the IndexError exception if it doesn't exist). Overload the shift-left operator (<<) printing the data of the revenue and the details of all the profits. Add all the other members which are necessary to make the functionality of the class complete or are required to run the code below.
Актуальные фриланс-проекты в категории C и C++
Инженер по инфраструктуре резидентных проксиМы строим сеть резидентных прокси с нуля — полностью собственную, без сторонних поставщиков. Нам нужен один исключительный сетевой инженер для создания всей технической базы. Что вы будете строить: - Android SDK для фонового использования, который направляет прокси-трафик через… C и C++, DevOps ∙ 3 дня назад ∙ 12 ставок |
Добробка в существующей версии 1с розница блока для РЦ(распределительного центра)В общем поясню, что у нас за база - есть общий сервер, где есть база Розница (где ставятся все приходы) - база УТП, куда переливаются все продажи - считается наценка, остатки по складам - маленькие базы розничных магазинов. По обменам у нас магазины обмениваются с базой Розница… C и C++, C# ∙ 3 дня 15 часов назад ∙ 6 ставок |
ПО Мастер-программа «KONSTRUCTOR»
185 977 UAH
Мы ищем очень опытного C++ разработчика для модернизации существующего ПО (мастер-программы). Программа отвечает за создание производного ПО представляющего аудио-визуальные сеансы психологической коррекции. Текущая версия написана на чистом WinAPI (Visual Studio 2019/2022).… C и C++, Десктопные приложения ∙ 8 дней 18 часов назад ∙ 19 ставок |
Написание кода для ArduinoНеобходимо разработать программное обеспечение для весового дозатора на базе Arduino Uno. Комплектующие: Arduino Uno R3 HX711 + тензодатчик LCD1602 I2C дисплей MAX7219 светодиодная матрица 8x32 5 кнопок управления 4-канальное реле 2 сигнальные лампы Вибромагнит грубого… C и C++, Встраиваемые системы и микроконтроллеры ∙ 10 дней 3 часа назад ∙ 15 ставок |
Нужно доработать проект или предоставить консультацию.
1000 UAH
|