Find Jobs
Hire Freelancers

Developing Code

$10-30 USD

已完成
已发布超过 1 年前

$10-30 USD

货到付款
You do NOT need to write a driver. Use the one provided in the template. Name it [login to view URL] You are given VehicleHeader.h, [login to view URL] // The entire class is given to you You are given PlaneHeader.h and CarHeader.h // Headers of derived classes given You need to MODIFY methods in [login to view URL] and [login to view URL] to induce polymorphic behavior Vehicle -year: int //year of manufacture -speed: int // miles per hour -type: string // “Vehicle” or “Plane” or “Car” -model: string // model (for Car it could be Honda etc, for Plane it can be Boeing etc) +Vehicle(); +Vehicle(int year, int speed, string type, string model); +setSpeed(int speed): void +setYear(int year): void +setModel(string model): void +setType(string type): void +getSpeed(): int +getYear(): int +getType(): string +getModel(): string +addSpeed(int s): void // just keep this method empty for now +serveDrinks():string // returns “Drinks served only on Planes” string toString(): string // *** implement this Polymorphically UML of Plane Class Plane (Inherits from Vehicle) + Plane(); +Plane(int year, int speed, string type, string model, int altitude); +getAltitude(): int // returns current height of plane +setAltitude(int height): void // sets the altitude in feet provided it is a positive number <300000 +addSpeed(int s): void // ** implement this polymorphically // the value s should be greater than 0 and speed of the plane should never exceed 1000 miles per hour. If s is not an acceptable value, throw exception and exit. +serveDrinks():string // returns “Water and Apple Juice Available +toString():string // ***implement this Polymorphically to display the plane object details Car (inherits from Vehicle) -wheelSize : int // size of car wheels (this field is not there in Vehicle or Plane) + Car(); +Plane(int year, int speed, string type, string model, int wheelSize); +addSpeed(int s): void //** implement this polymorphically // the value s should be greater than 0 and speed of the plane should never exceed 100 miles per hour. If s is not an acceptable value, throw exception and exit. +serveDrinks():string // ** implement this polymorphically. It should say “Food and Drinks are not permitting in a Car” +getWheelSize(): int // returns the wheelSize of the car. +toString(): String // return the string of the Car object. Look at output for format Specifications: 1) Upgrade the Plane Class that inherits from the Vehicle class and that is based on the UML given above 2) Implement the addSpeed, toString, and serveDrinks method to exhibit polymorphic behavior 3) Experiment with different speeds, negative and too large values for car and plane 4) Test your program with the driver given to you to see that it matches the output given 5) Examine the program to see that a) The declarations of car and plane have changed to type b) Shared_ptr<Vehicle> car = make_shared<Car>(); instead of Shared_ptr<Car> car = make_shared<Car>(); b) The getAltitude (for plane) and getWheelSize (for car) methods can therefore no longer be called because they are not defined in the Vehicle base class c) The toString, addSpeed and serveDrinks methods behave polymorphically d) Note that even when defined polymorphically, if one derived class does not implement that instance method, then the base class behavior will be exhibit.
项目 ID: 35151304

关于此项目

17提案
远程项目
活跃1 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello I hope you are doing well. I am a C++ programmer having little bit experience in this field. I understand all the details and want to work with you. Thank you
$32 USD 在3天之内
5.0 (1条评论)
1.1
1.1
17威客以平均价$27 USD来参与此工作竞价
用户头像
Hello Sir/Madam I have development experience in various Programming Languages, OOP, Data Structures, Database Driven applications, APIs, Files handling and Data Transformation, ETL and various frameworks. I assure you an excellent solution of your project within the time frame and exactly according to the requirements. Thanks @CodingHelpLine
$20 USD 在3天之内
5.0 (97条评论)
5.9
5.9
用户头像
Greetings I saw your project and as an expert in C/C++ language I am sure I can do your task. I have previously worked on various C++ projects which includes making games, management systems projects and C++ is my primary language which makes me perfect person for your task. Feel free to contact me so we can discuss in detail about your project. Best Regards, Shabih Ul Hassan
$50 USD 在1天之内
4.9 (79条评论)
5.7
5.7
用户头像
Hi, I have great experience in both C and C++ programming, algorithm design and implementation. I have lots of experience in writing object oriented code in C++, using polymorphism, inheritance, STL and many advanced features! I have checked the class description and I believe I can definitely help you implement this. Please feel free to contact me via chat so that we can discuss further and start working on this amazing project right away !!! Best Regards, Aravind A
$30 USD 在1天之内
4.9 (31条评论)
4.9
4.9
用户头像
Hi, How are u? I have full experience with C++, UML I've a great skill in this fields. So I can complete your project with high quality on time. Looking forward to hear more about the project from you via chatting. Thanks & Best regards!
$20 USD 在1天之内
5.0 (6条评论)
3.9
3.9
用户头像
Hello, there? This is Eduardo from Australia. I have read the proposal carefully. I can do the work perfectly. I hope you give me a chance. Regards.
$50 USD 在1天之内
5.0 (3条评论)
3.9
3.9
用户头像
Hello, I have rich experience in UML design as skillful software engineer. I have read all your explanations carefully and fully understand your requirements. So I am sure I can give you correct and good results. I would appreciate it if you could contact me soon and share your project details. Thank you.
$20 USD 在1天之内
5.0 (4条评论)
2.7
2.7
用户头像
⚛️ Expert for UML, C/C++, C , OOP, Algorithm, able to start right now ⚛️ Hello, I am senior developer with enough experiences on UML, C/C++, Python , OOP, Algorithm For 7+ years. so I have confident to complete your project. I can work by full time for your project and trying to satisfy the requirements. I am designing the project from scratch and structure it well. "Client's idea + Programmer's robotic coding is the perfect result" This is my idea. If you want to the perfect result, please contact with me. https://www.freelancer.com/u/vd58xd24
$20 USD 在1天之内
5.0 (2条评论)
2.3
2.3
用户头像
i am very good at c++ programming in linux(ubuntu), good at OOPS&data structure&algorithmic logical programming too, kindly award me this project to me
$10 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello. I am a skillful C++ developer. I have read your requirement with great interests, so that I feel I can build your project. Hope your kind message.
$50 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi, c++ expert here! please knock right now. I will complete your project in an hour. Thanks for your posting.
$20 USD 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi, after reading over your post, I have come to know you wanna modify some method in C/C++ and I think it is perfect for my skill sets. I am a C/C++ expert who have 12+ years of experience. I designed tons of classes, so I can easily understand existing code and modify methods. I can do it within a day. Please send me message and discuss further detail. Thanks.
$20 USD 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
I am a software developer with 16 years of experience in c/cpp/c# and this is a easy job for me. Hopefully I will be able to serve this task
$15 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
⭐⭐I can start now and I am confident that I can do it ⭐⭐ I did many designs and I can show u some of it. I have 10 years of experience in this field and I have these skills (UML Design, Computer Scienceand C++ Programming) some of my designs I will show u in chat. so just check my reviews and please have a look on my profile. let us discuss in chat
$20 USD 在4天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello. I read the mentioned details of the project that you are looking for an Metatrader expert. And I am very confident about the project. I am C/C++/C# programming & UML Design master. To me client is like sky,it is my pleasure to realize your ideas. Confidence, stability, support and honesty make me unique from others. I promise to provide you with the best service at a reasonable price. I hope to discuss the project with you in detail. Thanks for your attention.
$33 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello. I have read your description carefully and am very interested. As a C++ Expert, I have rich experience in C++ for over 10 years. They sound like great projects and exactly the kind of thing I work on. “Expect the best, plan for the worst, and prepare to be surprised.” If you are looking for a senior programmer, please contact me anytime. Looking forward to hearing from you. Best regards.
$30 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Davis, United States
5.0
1
付款方式已验证
会员自12月 15, 2021起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。