Find Jobs
Hire Freelancers

Assignment

$30-250 USD

Concluído
Publicado há quase 10 anos

$30-250 USD

Pago na 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 do Projeto: 6206516

Sobre o projeto

14 propostas
Projeto remoto
Ativo há 10 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
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 em 1 dia
5,0 (21 avaliações)
5,2
5,2
14 freelancers estão ofertando em média $45 USD for esse trabalho
Avatar do Usuário
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 em 0 dia
4,9 (24 avaliações)
5,1
5,1
Avatar do Usuário
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 em 3 dias
5,0 (8 avaliações)
3,5
3,5
Avatar do Usuário
Hi, Ready to start.. Please PM me for more details............................................................................ Thank You
$30 USD em 2 dias
5,0 (1 avaliação)
0,8
0,8
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hello, It is an easy assignment. Let me know if you will choose me to start coding. Thanks.. ........................
$30 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
A proposal has not yet been provided
$66 USD em 3 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
destin, United States
5,0
1
Método de pagamento verificado
Membro desde jul. 18, 2014

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.