Find Jobs
Hire Freelancers

C++ operator overloading, recursion project

$10-30 USD

Ukończony
Opublikowano prawie 10 lat temu

$10-30 USD

Płatne przy odbiorze
Based on the following Rectangle class - class Rectangle { double width; double height; public: double area() {return width * height;} void setHeight(double h) {height = h;} void setWidth(double w) {width = w;} double getHeight() {return height;} double getWidth() {return width;} }; Assuming all measurements in the question is in inch. 1. Please add a public function that overload "+=" operator. The function takes as parameter of a Rectangle object. The width and height of the object should be added to the width and the height of the current (this) object. 2. Please add a public recursion function that calculates how many tiles needed to fill up the area of the Rectangle object. Each tile is 2.1*3.2. The result should be an integer (ceiling). Please do NOT use division calculation to get the result (too trivial), but use recursion technique to resolve the issue. [Hint: The results of division can be obtained by repeated subtraction.] 3. Please create some test code in your main() function to test the two functions you created.
Identyfikator projektu: 5832094

Informację o projekcie

3 ofert
Zdalny projekt
Aktywny 10 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result. Let me know if you are interested so I can start. Thanks.
$10 USD w 1 dzień
5,0 (935 opinii)
7,6
7,6
3 freelancerzy składają oferty o średniej wysokości $15 USD dla tej pracy
Awatar Użytkownika
Hi.. I am Nikhil. I have working experience of 3+ year in C++ Development. I have done work on: 1. Data Structure like: Set, Vector, Linked list, Tree(Any type), Graph. 2. STL ( Tamplate Library) 3. Networking Socket, IO programming 4. File Handling and Parsing. Let start conversation so you get to know about my skills and ability. Please give me a chance to do work with you and I am promising you that you will not disappoint by me. I read your desc. I am very sure that I will do this within 4 hours. Please give a chance to conversation with you. I am waiting for your positive response. Thank you.
$25 USD w 1 dzień
4,8 (29 opinii)
4,3
4,3
Awatar Użytkownika
Hi, I am interested in your project. I am expert in C++ programming. I will help you to solve your problem. With warm regards, Summit S.
$10 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
FLUSHING, United States
5,0
13
Zweryfikowana metoda płatności
Członek od lis 28, 2013

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.