The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 5 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
This is Computer Science II problem. There are two part for this problem. I actually need the part A first and you can do the part B later. But please submit the part B after 4-5 days the part A was submitted.
Â
class Car{public:Car();Car(char *, char *, int, float, bool);Car(const Car&);~Car();void copy(Car);void print() const;char * getMake() const;char * getModel() const;int getYear() const;float getPrice() const;bool getAvailable() const;void setMake(char *);void setModel(char *);void setYear(int);void setPrice(float);void setAvailable(bool);private:char * make;char * model;int year;float price;bool available;};class Agency{public:Agency();Agency(const Agency&);~Agency();void readInData(char *);void print() const;void printAvailableCars() const;void findMostExpensive() const;float estimateCost(int, int) const;void sortByMake();// alphabeticalvoid sortByPrice();// highest to lowestvoid searchByMake(char *) const;private:char * name;int * zipcode;Car * inventory;};
Â
Attachments: