Find Jobs
Hire Freelancers

C++ operator overloading, recursion project

$10-30 USD

Terminado
Publicado hace alrededor de 10 años

$10-30 USD

Pagado a la entrega
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.
ID del proyecto: 5832094

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 1 día
5,0 (935 comentarios)
7,6
7,6
3 freelancers están ofertando un promedio de $15 USD por este trabajo
Avatar del usuario
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 en 1 día
4,8 (29 comentarios)
4,3
4,3
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
FLUSHING, United States
5,0
13
Forma de pago verificada
Miembro desde nov 28, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.