Question: Please help! I will give thumbs up Below this is the input file ll T-Mobile LTE 1:43 PM re-uploads.s3.amazonaws.com CS 202-Computer Science II Project 4
ll T-Mobile LTE 1:43 PM re-uploads.s3.amazonaws.com CS 202-Computer Science II Project 4 Due date: Thursday, 06/21/2018, 11:59 pm Objectives: The main objectives of this project is to test your ability to create and use C+ classes, with multiple constructors, static members/functions, and expand to operator overloading. A review of pointers, structs, arrays, iostream, file IO and C-style strings is also included. This project will significantly expand upon Project 3 by adding additional functionality, and implementing more abstract data types (ADTs) and their operations through classes. Pointers must be used for array manipulation, including arrays with ADTs (structs, classes) e.g. rental cars, rental agencies. Pointers must be used in function prototypes and function parameter lists- not square brackets. Make sure all your C-string functions (e.g, string copy, string compare, etc) work with pointers (parameters list and function implementation). Const should be used in parameter lists, functions, and function signatures as appropriate. Square brackets should be used only when declaring an array, or if otherwise you specify your own overloaded operator Pointers can only be moved by incrementing or decrementing(e., ++or-), or by setting the pointer back to the base address using the array name. You should use the arrow operator( with any pointers where appropriate The additional functionality is as follows: You are given an updated data file where there is 1 Agency location (Ageney) which has 5 (potentially) high-tech cars (Car). Each car can also incorporate up to 3 (0-3) special driving sensors (Sensor). You will have similar menu options, but the functionality has been updated below. Note: using multiple helper functions to do smaller tasks will make this project significantly easier. The Sensor Class will contain the following private data members: m type, a C-string ehar array of 255 max characters (name of sensor type), valid strings for Sensor m type are "gps", "camera" lidarradarnone extracost, a float (additional rent cost per day for the car that carries the sensor, for "gps $5.0/day, for "camera S10.0day, for "1idar" $15.0 day, for radar $20.0 day, for none" S0.0day) gps cnt, a statie int member (keeps track of existing gps-type sensors) m camera ent, a static int member (keeps track of existing camera-type sensors) lidar cnt, a static int member (keeps track of existing lidar-type sensors) radar cnt, a static int member (keeps track of existing radar-type sensors) and will have the following methods: Default Constructor- will set the aforementioned data members to default initial values. Parameterized Constructor-will create a new object based on the values passed into it Copy Constructor-will create a new object which duplicates an input Sensor Object Get/Set methods for appropriate data member(s) A Get and a Reset static member function to return and to reset each of the static member variables. A Method to check if 2 Sensor Objects are the same. You should make this an operator overload of (operator-- You may want to try for practice to make it a non-Class Member function which will have to access member data over Class methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
