Find Jobs
Hire Freelancers

Assignment

$30-250 USD

Ολοκληρώθηκε
Αναρτήθηκε περίπου 10 χρόνια πριν

$30-250 USD

Πληρωμή κατά την παράδοση
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]; }
Ταυτότητα εργασίας: 6206516

Σχετικά με την εργασία

14 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 10 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
Hello there! I am proficient in C++ and I can provide you with the required classes and code in a few hours. I suppose that this is for a course assignment, so if you know which development environment you are using, I might be able to provide you with a project file for that too. Thank you in advance! Best Regards Alex
$34 USD σε 1 ημέρα
5,0 (21 αξιολογήσεις)
5,2
5,2
14 freelancers δίνουν μια μέση προσφορά $45 USD για αυτή τη δουλειά
Avatar Χρήστη
Hello 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 σε 0 ημέρα
4,9 (24 αξιολογήσεις)
5,1
5,1
Avatar Χρήστη
Professional C++ programmer with 4 years experience in OOP concepts and object oriented analysis I can deliver this project in the given time with full documentation. please contact me for more information.
$45 USD σε 3 ημέρες
5,0 (8 αξιολογήσεις)
3,5
3,5
Avatar Χρήστη
Hi, Ready to start.. Please PM me for more details............................................................................ Thank You
$30 USD σε 2 ημέρες
5,0 (1 αξιολόγηση)
0,8
0,8
Avatar Χρήστη
I'am ready to do this Assignement now and finish it after some hours contact me please I'am ready to do this Assignement now and finish it after some hours contact me please
$35 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
I am available to complete this project for you. I am well-versed with the c++ language and have other colleague programmers to check the work in case I face any issues. Please choose me for your work and I will deliver the product like you've required it. best,
$88 USD σε 3 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hello! I can do the work, send a private message and let's talk about it. I would like to know when you need the code. See you!
$35 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hi. I have read and understood your requirement. This assignment need only implement 3 classes. Class Ship is parent. And 2 remaining class are child. This assignment use operator, virtual method, override method and some component of OOP in C++. I have 4 year experience working with C++. And I believe that I am a good choice for your assignment. This assignment is so easy, so I can complete it in 1 day. Nice to work with you. Thanks for your reading. Good luck.
$35 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hi! We are a team of Software Engineer looking for work. We are fresh here and would sincerely do the work. We have good practice for c++ programming. We all are Computer Science Engineers. We have good efficiency in HTML, CSS, Javascript, PHP , MySQL, Wordpress, Web design and development. Please give us an opportunity to prove ourself. Thank You.
$37 USD σε 3 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
experienced programmer and solving math problems , it's an easy job for me i can work really fast, if you need this really soon, i can start to work asap.
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hello, It is an easy assignment. Let me know if you will choose me to start coding. Thanks.. ........................
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
I can do it in about 2 hours, so if you want this done ASAP, I'll get it done for you , I would have set even a lower bid but the system didn't allow me.
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
A proposal has not yet been provided
$66 USD σε 3 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
destin, United States
5,0
1
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Ιουλ 18, 2014

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.