Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is the link to the proj4.cpp file, let me know if you have any issues viewing it. https:/evadaunr-my.sharepoint.com/personal/courtneylpalmer_nevada_unr_edu/_layouts/15/guestaccess.aspx?guestaccesstoken=62aWObCdQGDbH41q4zRu2z19lTYzfc%2bnlCY9vLczy94%3d&docid=2_0c5644bcac5784dd98ced95b385fedcf6&rev=1 Thank you so much for your

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Here is the link to the proj4.cpp file, let me know if you have any issues viewing it.

https:/evadaunr-my.sharepoint.com/personal/courtneylpalmer_nevada_unr_edu/_layouts/15/guestaccess.aspx?guestaccesstoken=62aWObCdQGDbH41q4zRu2z19lTYzfc%2bnlCY9vLczy94%3d&docid=2_0c5644bcac5784dd98ced95b385fedcf6&rev=1

Thank you so much for your help!

Objectives: The main objectives of this project is to test your ability to create and use inheritance with C++ classes. A review of your knowledge to manipulate classes with multiple constructors, static members/functions, and expand to ope iostream, file I/O and C-style strings is also included. rator overloading, as well as pointers, structs, array Description: For this project you may use square bracket-indexing, pointers, references, all operators, as well as the or library functions (however the std: :string type is still not allowed) The required functionality is as follows: You are given the specifications for a 2 Classes that have an Inheritance relationship - one being the Base class (Vehicle) and one the Derived (Car). You have to translate these specifications into class implementations (header and source files) and test them against a test driver (proj5.cpp) which is provided. You are also required to explain in your documentation the observed output from running the test driver The Vehicle Class will contain the following protected data members: m_lla, a float array of size 3 which represents the location of the vehicle on the earth (LLA stands for longitude-Latitude-Altitude, which are the 3 values stored within the array) m vin, a const int which represent a unique VIN - Vehicle Identification Number (no two vehicles can ever exist with the same m_vin) and the following private data members sidgen, a static int which is used by the class to generate a unique identifier to initialize m_vin whenever a new Vehicle object is instantiated - how can you achieve this behavior? (Hint Remember how you have been using static variables so far to keep track of the count of a class' active objects) Objectives: The main objectives of this project is to test your ability to create and use inheritance with C++ classes. A review of your knowledge to manipulate classes with multiple constructors, static members/functions, and expand to ope iostream, file I/O and C-style strings is also included. rator overloading, as well as pointers, structs, array Description: For this project you may use square bracket-indexing, pointers, references, all operators, as well as the or library functions (however the std: :string type is still not allowed) The required functionality is as follows: You are given the specifications for a 2 Classes that have an Inheritance relationship - one being the Base class (Vehicle) and one the Derived (Car). You have to translate these specifications into class implementations (header and source files) and test them against a test driver (proj5.cpp) which is provided. You are also required to explain in your documentation the observed output from running the test driver The Vehicle Class will contain the following protected data members: m_lla, a float array of size 3 which represents the location of the vehicle on the earth (LLA stands for longitude-Latitude-Altitude, which are the 3 values stored within the array) m vin, a const int which represent a unique VIN - Vehicle Identification Number (no two vehicles can ever exist with the same m_vin) and the following private data members sidgen, a static int which is used by the class to generate a unique identifier to initialize m_vin whenever a new Vehicle object is instantiated - how can you achieve this behavior? (Hint Remember how you have been using static variables so far to keep track of the count of a class' active objects)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago