Find Jobs
Hire Freelancers

Assignment

$30-250 USD

Cerrado
Publicado hace casi 10 años

$30-250 USD

Pagado a la entrega
Design a Ship class that has the following members: A member variable for the name of the ship ( a string) A member variable for the year that the ship was built ( a string) A constructor and appropriate accessors and mutators Six overloaded relational operators that compare 2 ships. Compare based on the year the ship was built. A virtual print function that displays the ship’s name and the year it was built. Design a Cruise Ship class that is derived from the Ship class. The Cruise Ship class should have the following members: A member variable for the maximum number of passengers ( an int)A constructor and appropriate accessors and mutators A print function that overrides the print function in the base class. The Cruise Ship class’s print function should display only the ship’s name and the maximum number of [login to view URL] a Cargo Ship class that is derived from the Ship class. The Cargo Ship class should have the following members:A member variable for the cargo capacity in tonnage ( an int).A constructor and appropriate accessors and mutators.A print function that overrides the print function in the base class. The Cargo Ship class’s print function should display only the ship’s name and the ship’s cargo capacity. Use the following code in your main function to test your classes: // Create an array of Ship pointers, initialized with // the addresses of some dynamically allocated objects. const int SIZE = 3; Ship *ships[SIZE] = { new Ship( "Lolipop" , 1960), new CruiseShip( "Disney Magic" , 1998, 2400), new CargoShip( "Black Pearl" , 1800, 5000 0) }; int firstShip = 0; int lastShip = 0; // Call each object's print function and check for newest and oldest. for ( int index=0; index < SIZE; index++) { ships[index] - >print(); cout << " ---------------------------- \ n" ; //Use overloaded relational operators if (*ships[index] < *ships[firstShip]) firstShip = index; if (*ships[index] > *ships[lastShip]) lastShip = index; } cout<<endl; cout<< "The oldest ship built was in " << ships[firstShip] - >getYearBuilt() << endl; ships[firstShip] - >print(); cout<< "The newest ship built was in " << ships[lastShip] - >getYearBuilt() << endl; ships[lastShip] - >print(); //free up the memory for ( int index=0; index < SIZE; index++) { delete ships[index]; }
ID del proyecto: 6206715

Información sobre el proyecto

33 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
33 freelancers están ofertando un promedio de $45 USD por este trabajo
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.
$30 USD en 1 día
5,0 (636 comentarios)
7,3
7,3
Avatar del usuario
Hello. I am C and C++ expert but I able to write code in "beginner's style". This assignment looks pretty easy for me, there is chance to complete it in few hours.
$30 USD en 1 día
4,9 (1018 comentarios)
7,4
7,4
Avatar del usuario
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the lauguage is c++ under linux os. So, programming in c++ is never a problem. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ with the same meaning, of course garbage collection included. I made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$30 USD en 1 día
4,8 (124 comentarios)
6,8
6,8
Avatar del usuario
Hello I understand your requirements and ready to start this job. I have 20+ years of C++ experience, 10 years as freelancer 300+ projects completed. · I´ll send you a full tested and documented program (in code). · Unlimited cycles of revision in the agreed time period. · Full advice about the best way to do the implementation. Please contact me to discuss the details. Thanks.
$35 USD en 0 día
4,9 (24 comentarios)
5,2
5,2
Avatar del usuario
Hello. I am expert in C++. I can do your job quickly and well. Thank.
$30 USD en 1 día
4,9 (29 comentarios)
5,3
5,3
Avatar del usuario
Hello, I have a great experience in c/c++/c# and java(Android). All of the my employees are satisfied with the quality and speed of my work. See my profile to be sure of this. If you want to get a quality result done on time - hire me. It will be the best solution for you work. I can start the work right now. Don't lose your money and time. contact me please for more information. Best regards, Pavel.
$30 USD en 3 días
4,9 (44 comentarios)
5,1
5,1
Avatar del usuario
Hi.. I am Nikhil. I have working experience of 3+ year in C and C++ Development. I have done work on: 1. Data Structure like: Set, Vector, Linked list, Stack, Tree(Binary Search Tree, B+ Tree, AVL Tree), Graph. 2. File Handling and Parsing. 3. Networking Socket, IO programming 4. STL ( Standard Template Library) Currently I have done similar projects for collage students like: 1. Implemented Chess Class 2. I have done these traversals and Binary Search Tree Creation. 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 description and understood your requirements. I am very sure that I will do this within 2 to 4 hours. I will write code with comments so you will understand it easily and I will also help you to solve any further query.. If you need any help after project then I will be here. I will give you my 100% efforts and do hard work for complete it. Please give a chance to build this relationship and work with you. I am waiting for your positive response. Thank you & Best Regards. Nikhil
$50 USD en 1 día
4,7 (21 comentarios)
4,0
4,0
Avatar del usuario
Hello, I'm a professional C/C++ developer that can handle this task with ease. You will get a high quality code within one day. The sooner you award me on the project the sonner you get the job done. Feel free to ask me anything in advance through private chat. Thank you.
$40 USD en 1 día
5,0 (6 comentarios)
3,5
3,5
Avatar del usuario
Hello, I am a professional programmer. I have read your project description and I can easily create classes you specified. I will send you the output using your give input very soon. Thanks
$30 USD en 1 día
4,9 (5 comentarios)
2,8
2,8
Avatar del usuario
Hello Sir, I'm an experience OOP developer and designer using the C++/Java programming language. I will be very happy to work on your program and provide the requested features in a well-documented and easy-to-read code. My skills on Classes, Inheritance, Encapsulation etc. are good and will appreciate the opportunity to show case them. Thank you, Isaac
$30 USD en 1 día
4,4 (2 comentarios)
1,8
1,8
Avatar del usuario
Hi, Ready to start... I can complete your task within a day.... Please PM me for more details.............. THank YOu
$35 USD en 1 día
5,0 (1 comentario)
0,8
0,8
Avatar del usuario
or More Discuss S.k.y.p.e _I.d---------------------- papiol05 ----------------------------------------------------
$30 USD en 0 día
1,0 (1 comentario)
2,2
2,2
Avatar del usuario
Dear Client, What you need is very easy and straight forward , I'll send you just after you confirm that you want to see a working demo , it's very easy job , and i'll be glad to do it :) Regards, Omar
$30 USD en 1 día
5,0 (1 comentario)
0,6
0,6
Avatar del usuario
i will do this if u like to i have 6 year experience in programming i review the code given there and will answer you in the given time and if u like i will please to deliver you your assignment
$222 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
The problem seems to be simple. I can finish this project ASAP if you need it, you can contact me directly..
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I done few projects in recent semester related to c++ like bank waiting system and rent a car system. I love programming in C++. I am new in Freelancer but i know to about C++ very well. I am sure i can do this very well. Thank You
$35 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I am a Computer Engineer, with experience in C, C++, JAVA, Android, MATLAB. Looking forward to working with you. :) Regards. Samran
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I can deliver before the night ends (or day, depending on your location :) ) its a fast project and ill deliver well documented code so you can understand why everything is as it was written. any doubts you have with the project after completion will be answered trough a proper channel ^^ have a nice day.
$30 USD en 0 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
A proposal has not yet been provided
$111 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hello, I am Computer Engineer student from Gujarat. I love coding. I usually take part in CodeChef events and active member of CodeProject. I won 6 different events on C and C++. I will give you your code on time. Thank you.
$30 USD en 0 día
5,0 (1 comentario)
0,0
0,0

Sobre este cliente

Bandera de INDIA
Bhubaneswar, India
0,0
0
Miembro desde jul 18, 2014

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.