Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please DO NOT write the code, can you just explain the directions thoroughly l T-Mobile 9:29 AM * 100%) --+ Back Cs202_Project_5.pdf CS 202- Computer

Please DO NOT write the code, can you just explain the directions thoroughly

image text in transcribed

image text in transcribed

l T-Mobile 9:29 AM * 100%) --+ Back Cs202_Project_5.pdf CS 202- Computer Science II Project 5 Due dane (FIXED) Wednesday, 3/6/2019, 11:59 pa Objecaves! The main objcives of this project is to sest your allity to create and use inherinancse with C++classes. A review of your knowledge to manipulate classes with multipik constructons osercam, fik 1/O and C-style strings is also included For this project you may use square bracket-indexing, pointers, references, all opetatons, as wel The required functionality is as follows You are given the specifications for a 2 Classes that have an Inheritance relutionship- one being the Base class Vehicle) and one the Derived Can. You have to tranlate these specifications into class implementations (eader and source Ele) and nes them gainst a test driver (projscpp) which is proxided You are also required to explain in your documenaion the observed output foe funning the tet driver, ine-by-lne The Vehicle Class will contain the following protccted data members: m lla, a loat array of siae 3 which repecsents the location of the vehicke on the canth LI.A stands for Latinde Longinude Altinode, which are the 3 values soored widhin the ara m,vin, a gonst intwhich epresent a uniq VIN-Vehicle Identification Number (no two vehicles can ever exise with the same mvi) and the following privats data members: '-idgen, a state Ant which used by thc class ton ratc a uniqu..-r to nitialoe m vin whenever a new Vehicle object is instantiated-how can you achieve this beavio? (Hist Remember how you have been using static variables so far to kecp track of the count of a class' aceive objcces). and will have the following public method Default Constnecte the above describod specifications)When it gcts calld, in should produce a debag outpur uninitialined (escepe m vin which has so ll will leave everything where vin the actual member val Parameteriaed Constructor-will create a new oject based on a desied vlo for the VIN passed by-Value (it is however able to ansign a diffenene value if it uns into any danger od assigning conflicting valucs), and a desired set of valacs for I1.A passed by-Nds (a o float data). When it gess called, it shouald peoduce a debug ut whene vin the actual member valuc). Copy Constnactor-will create a new object based on the values of anothet Vehick object escee vin which has to follow the above descrbed specifications) When it gets calledi hould produce a delbug output Destructor- called whenever an objoct gets destroyed. Whem it gets called, it should debug outpue where vin the actual member valux) Assignment operabo-will assign member values so the caling object hased on the values of another Vehiclk object. WThe it gts called, it should produce a delug output where vin the actual member valu). 24 Dashboard Calendar To Do Notifications Inbox l T-Mobile 9:29 AM Back CS202.Project-5.pdf eeder foe the Vehick object to move thee. When it gets called, it should produce a debug where vin the acual member value). The Vehicle is a more general parent Class Ir does have ins oun dana and a number of behavions, and it does have afuncsion to move the function describes a moving beuvior eakes in a new LIA ocaon), ijust implements the behavice in this limited wary- A getldgen statie member function to seturn the value of the staticmember variabl You should also peovide an overload for this class for the Insertion operatorssWhem it gets called, it should peodace an output (where vis the actual member andlat, kn, alt due LLAR2values). The Car Class will inherit from Vehicle and will contain the following prixetc data membens m planes, a C-string char amay of 236 max characters (car license planes) m, theottle, an int (thronle command to bring i ineo motion) and will have the following pabblic method Default Consanactoe- will set a defaule value of 0 tom thecetle and leave the rest unnitulized. oherwise, it should behave the ur , the Vehick Defauk constructor, n gets calledl it shoulkd produce a delg outpt hen Parameterized Constructor-will create a new object based on a desined va for the Scense plates passed as a Costring (pointer so char datal, the VIN passed by Va (same behavior as the Vehicle Parametrinod), and a desined set of valaes foe LLA passed by .Mdress (a pointer > f loat data). The default value of O should be set tom-thne* he as well. When in gets calledl in should produce a deg outpu Copy Constnactor-will create a new objoct based on the vallucs of anoeher Car objoct same behavior as the Vehicle Capy),when in gets called, is should produoe a debug oup Deseructor-called whenever n objoct gets destroyed. When it gees called, it souil peodace a debug output Car Min Dewhere vin the actual member value). Assignmment operator-wll assign member values so the caling objet ased on the values of anoehet Car object. When it gets called, it should produce a debag utpt where vin the actual member valax) grt/ct methods as appeopriate for data members m.plates and mhouttle A drive method which takes in a an int by-Valuc and uscs it as a throttde valae by setting it to mthroete (begins driving at this throade leve A move method which takes in a new LI.A location by-Address (a pointer to loat data)i cader for the Car objgct to move therehen i gets called, in should prodace a debug then cals Drive with an argument valuc 75, and Enally updates mlla with the passed valucs The Car is a more specialized child Class It inherits all the data and all behaviors from Vehile, but iz can also overnide behavices such as move (the function that describes a myng behavior asz takes in a new LI.A katon), and impkmenta itits own specialnd way, ie, by Drived -ing peovide an overload foe t hould also Insertion operatos. Whem it gets called, it should peodace an output this class for value, plates the actual Icense planes Csning, heotle the actual throtle memiber valle, and lat, lon, alt the LI.AjO-21 vaues). 24 Dashboard Calendar To Do Notifications Inbox l T-Mobile 9:29 AM * 100%) --+ Back Cs202_Project_5.pdf CS 202- Computer Science II Project 5 Due dane (FIXED) Wednesday, 3/6/2019, 11:59 pa Objecaves! The main objcives of this project is to sest your allity to create and use inherinancse with C++classes. A review of your knowledge to manipulate classes with multipik constructons osercam, fik 1/O and C-style strings is also included For this project you may use square bracket-indexing, pointers, references, all opetatons, as wel The required functionality is as follows You are given the specifications for a 2 Classes that have an Inheritance relutionship- one being the Base class Vehicle) and one the Derived Can. You have to tranlate these specifications into class implementations (eader and source Ele) and nes them gainst a test driver (projscpp) which is proxided You are also required to explain in your documenaion the observed output foe funning the tet driver, ine-by-lne The Vehicle Class will contain the following protccted data members: m lla, a loat array of siae 3 which repecsents the location of the vehicke on the canth LI.A stands for Latinde Longinude Altinode, which are the 3 values soored widhin the ara m,vin, a gonst intwhich epresent a uniq VIN-Vehicle Identification Number (no two vehicles can ever exise with the same mvi) and the following privats data members: '-idgen, a state Ant which used by thc class ton ratc a uniqu..-r to nitialoe m vin whenever a new Vehicle object is instantiated-how can you achieve this beavio? (Hist Remember how you have been using static variables so far to kecp track of the count of a class' aceive objcces). and will have the following public method Default Constnecte the above describod specifications)When it gcts calld, in should produce a debag outpur uninitialined (escepe m vin which has so ll will leave everything where vin the actual member val Parameteriaed Constructor-will create a new oject based on a desied vlo for the VIN passed by-Value (it is however able to ansign a diffenene value if it uns into any danger od assigning conflicting valucs), and a desired set of valacs for I1.A passed by-Nds (a o float data). When it gess called, it shouald peoduce a debug ut whene vin the actual member valuc). Copy Constnactor-will create a new object based on the values of anothet Vehick object escee vin which has to follow the above descrbed specifications) When it gets calledi hould produce a delbug output Destructor- called whenever an objoct gets destroyed. Whem it gets called, it should debug outpue where vin the actual member valux) Assignment operabo-will assign member values so the caling object hased on the values of another Vehiclk object. WThe it gts called, it should produce a delug output where vin the actual member valu). 24 Dashboard Calendar To Do Notifications Inbox l T-Mobile 9:29 AM Back CS202.Project-5.pdf eeder foe the Vehick object to move thee. When it gets called, it should produce a debug where vin the acual member value). The Vehicle is a more general parent Class Ir does have ins oun dana and a number of behavions, and it does have afuncsion to move the function describes a moving beuvior eakes in a new LIA ocaon), ijust implements the behavice in this limited wary- A getldgen statie member function to seturn the value of the staticmember variabl You should also peovide an overload for this class for the Insertion operatorssWhem it gets called, it should peodace an output (where vis the actual member andlat, kn, alt due LLAR2values). The Car Class will inherit from Vehicle and will contain the following prixetc data membens m planes, a C-string char amay of 236 max characters (car license planes) m, theottle, an int (thronle command to bring i ineo motion) and will have the following pabblic method Default Consanactoe- will set a defaule value of 0 tom thecetle and leave the rest unnitulized. oherwise, it should behave the ur , the Vehick Defauk constructor, n gets calledl it shoulkd produce a delg outpt hen Parameterized Constructor-will create a new object based on a desined va for the Scense plates passed as a Costring (pointer so char datal, the VIN passed by Va (same behavior as the Vehicle Parametrinod), and a desined set of valaes foe LLA passed by .Mdress (a pointer > f loat data). The default value of O should be set tom-thne* he as well. When in gets calledl in should produce a deg outpu Copy Constnactor-will create a new objoct based on the vallucs of anoeher Car objoct same behavior as the Vehicle Capy),when in gets called, is should produoe a debug oup Deseructor-called whenever n objoct gets destroyed. When it gees called, it souil peodace a debug output Car Min Dewhere vin the actual member value). Assignmment operator-wll assign member values so the caling objet ased on the values of anoehet Car object. When it gets called, it should produce a debag utpt where vin the actual member valax) grt/ct methods as appeopriate for data members m.plates and mhouttle A drive method which takes in a an int by-Valuc and uscs it as a throttde valae by setting it to mthroete (begins driving at this throade leve A move method which takes in a new LI.A location by-Address (a pointer to loat data)i cader for the Car objgct to move therehen i gets called, in should prodace a debug then cals Drive with an argument valuc 75, and Enally updates mlla with the passed valucs The Car is a more specialized child Class It inherits all the data and all behaviors from Vehile, but iz can also overnide behavices such as move (the function that describes a myng behavior asz takes in a new LI.A katon), and impkmenta itits own specialnd way, ie, by Drived -ing peovide an overload foe t hould also Insertion operatos. Whem it gets called, it should peodace an output this class for value, plates the actual Icense planes Csning, heotle the actual throtle memiber valle, and lat, lon, alt the LI.AjO-21 vaues). 24 Dashboard Calendar To Do Notifications Inbox

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions