С++ код
25 PLNЗдравствуйте, мне нужно быстро написать код.(за пол часа)
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.
Aktualne zlecenia dla freelancerów w kategorii C i C++
Inżynier infrastruktury proxy mieszkalnychBudujemy sieć proxy dla użytkowników od podstaw — w pełni własną, bez dostawców zewnętrznych. Potrzebujemy jednego wyjątkowego inżyniera sieci, który zbuduje całą podstawę techniczną. Co zbudujesz: - SDK w tle dla Androida, które kieruje ruch proxy przez urządzenia użytkowników… C i C++, DevOps ∙ 3 dni 4 godziny temu ∙ 12 ofert |
Dobrobka w istniejącej wersji 1c detalicznego bloku dla RC (centrum dystrybucji)Ogólnie wyjaśnię, co mamy za bazę - jest ogólny serwer, gdzie znajduje się baza Detal (gdzie rejestrowane są wszystkie przychody) - baza UTP, do której przelewają się wszystkie sprzedaże - liczy się marża, stany magazynowe - małe bazy detalicznych sklepów. W przypadku wymian,… C i C++, C# ∙ 3 dni 19 godzin temu ∙ 6 ofert |
Mistrzowska program «KONSTRUCTOR»
15 238 PLN
Szukamy bardzo doświadczonego programisty C++ do modernizacji istniejącego oprogramowania (programu głównego). Program odpowiada za tworzenie pochodnego oprogramowania reprezentującego sesje audiowizualnej korekcji psychologicznej. Obecna wersja jest napisana w czystym WinAPI… C i C++, Aplikacje desktopowe ∙ 8 dni 22 godziny temu ∙ 19 ofert |
Pisanie kodu dla ArduinoPotrzebne jest opracowanie oprogramowania dla wagowego dozownika opartego na Arduino Uno. Komponenty: Arduino Uno R3 HX711 + czujnik tensometryczny Wyświetlacz LCD1602 I2C Matryca LED MAX7219 8x32 5 przycisków sterujących 4-kanałowe przekaźniki 2 lampy sygnalizacyjne Wibromagnes… C i C++, Systemy wbudowane i mikrokontrolery ∙ 10 dni 7 godzin temu ∙ 15 ofert |
Trzeba dokończyć projekt lub udzielić konsultacji.
82 PLN
|