Find Jobs
Hire Freelancers

Assignment

$30-250 USD

Geschlossen
Veröffentlicht vor fast 10 Jahren

$30-250 USD

Bezahlt bei Lieferung
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]; }
Projekt-ID: 6206715

Über das Projekt

33 Vorschläge
Remote Projekt
Aktiv vor 10 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
33 Freelancer bieten im Durchschnitt $45 USD für diesen Auftrag
Avatar des Nutzers
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 in 1 Tag
5,0 (636 Bewertungen)
7,3
7,3
Avatar des Nutzers
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 in 1 Tag
4,9 (1018 Bewertungen)
7,4
7,4
Avatar des Nutzers
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 in 1 Tag
4,8 (124 Bewertungen)
6,8
6,8
Avatar des Nutzers
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 in 0 Tag
4,9 (24 Bewertungen)
5,2
5,2
Avatar des Nutzers
Hello. I am expert in C++. I can do your job quickly and well. Thank.
$30 USD in 1 Tag
4,9 (29 Bewertungen)
5,3
5,3
Avatar des Nutzers
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 in 3 Tagen
4,9 (44 Bewertungen)
5,1
5,1
Avatar des Nutzers
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 in 1 Tag
4,7 (21 Bewertungen)
4,0
4,0
Avatar des Nutzers
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 in 1 Tag
5,0 (6 Bewertungen)
3,5
3,5
Avatar des Nutzers
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 in 1 Tag
4,9 (5 Bewertungen)
2,8
2,8
Avatar des Nutzers
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 in 1 Tag
4,4 (2 Bewertungen)
1,8
1,8
Avatar des Nutzers
Hi, Ready to start... I can complete your task within a day.... Please PM me for more details.............. THank YOu
$35 USD in 1 Tag
5,0 (1 Bewertung)
0,8
0,8
Avatar des Nutzers
or More Discuss S.k.y.p.e _I.d---------------------- papiol05 ----------------------------------------------------
$30 USD in 0 Tag
1,0 (1 Bewertung)
2,2
2,2
Avatar des Nutzers
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 in 1 Tag
5,0 (1 Bewertung)
0,6
0,6
Avatar des Nutzers
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 in 3 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
The problem seems to be simple. I can finish this project ASAP if you need it, you can contact me directly..
$30 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 3 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Hi, I am a Computer Engineer, with experience in C, C++, JAVA, Android, MATLAB. Looking forward to working with you. :) Regards. Samran
$30 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 0 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
A proposal has not yet been provided
$111 USD in 3 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 0 Tag
5,0 (1 Bewertung)
0,0
0,0

Über den Kunden

Flagge von INDIA
Bhubaneswar, India
0,0
0
Mitglied seit Juli 18, 2014

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.