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]; }
รหัสโปรเจกต์: 6206715

เกี่ยวกับโปรเจกต์

33 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 10 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
33 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $45 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
5.0 (636 รีวิว)
7.3
7.3
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
4.9 (1018 รีวิว)
7.4
7.4
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
4.8 (124 รีวิว)
6.8
6.8
รูปอวาตาร์ของผู้ใช้
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 ใน 0 วัน
4.9 (24 รีวิว)
5.2
5.2
รูปอวาตาร์ของผู้ใช้
Hello. I am expert in C++. I can do your job quickly and well. Thank.
$30 USD ใน 1 วัน
4.9 (29 รีวิว)
5.3
5.3
รูปอวาตาร์ของผู้ใช้
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 ใน 3 วัน
4.9 (44 รีวิว)
5.1
5.1
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
4.7 (21 รีวิว)
4.0
4.0
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
5.0 (6 รีวิว)
3.5
3.5
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
4.9 (5 รีวิว)
2.8
2.8
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
4.4 (2 รีวิว)
1.8
1.8
รูปอวาตาร์ของผู้ใช้
Hi, Ready to start... I can complete your task within a day.... Please PM me for more details.............. THank YOu
$35 USD ใน 1 วัน
5.0 (1 รีวิว)
0.8
0.8
รูปอวาตาร์ของผู้ใช้
or More Discuss S.k.y.p.e _I.d---------------------- papiol05 ----------------------------------------------------
$30 USD ใน 0 วัน
1.0 (1 รีวิว)
2.2
2.2
รูปอวาตาร์ของผู้ใช้
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 ใน 1 วัน
5.0 (1 รีวิว)
0.6
0.6
รูปอวาตาร์ของผู้ใช้
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 ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
The problem seems to be simple. I can finish this project ASAP if you need it, you can contact me directly..
$30 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
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 ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hi, I am a Computer Engineer, with experience in C, C++, JAVA, Android, MATLAB. Looking forward to working with you. :) Regards. Samran
$30 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
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 ใน 0 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$111 USD ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
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 ใน 0 วัน
5.0 (1 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ INDIA
Bhubaneswar, India
0.0
0
เป็นสมาชิกตั้งแต่ ก.ค. 18, 2014

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง