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.
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 ndani ya siku 3
5.0 (1 hakiki)
1.1
1.1
17 wafanyakazi huru wana zabuni kwa wastani $27 USD kwa kazi hii
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
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
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
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!
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.
⚛️ 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
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
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.
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.
⭐⭐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
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.
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.