Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i want this done in c++ Question: 1 You are hired by a Garage owner to design a Garage Management System (GMS). To avoid the

i want this done in c++

imageimage

Question: 1 You are hired by a Garage owner to design a Garage Management System (GMS). To avoid the Traffic jams, your GMS will tell the new customers coming to the garage at the garage entrance how many places are left in the Garage and whether there is place for their car in the Garage or not (Your GMS will also be conveying this information to Garage owner). To design this Garage Management System, you will write two classes: Car and Garage class. Details of the functionalities desired by these classes shall be derived from the GMS requirements. So Write a class named Car having following Attributes: make of type string car Model of type string reg No of type string year of type int Car Class will provide following interface. 1. Write a constructor to initialize the attributes of car. 2. Write init (const string &, const string&, const string&, const int &) function to initialize the attributes of car. 3. Write a destructor for car class Now write class Garage of your GMS having the following attributes name of type string index of type int capacity of type int Array of objects of Car class (cars) with maximum size equals to capacity Provide following functionality/interface for Garage class 1. Write a constructor for class Garage to initialize its attributes. Initially consider that the Garage has capacity of 10 cars. 2. IsEmpty(): Returns true if garage is empty and false otherwise 3. IsFull(): Returns true if garage is full and false otherwise. 4. Push (car e): Implement that function to park a new car e in garage, considering that the garage is not full. 5. Find (string reg): Function should return true if that car is parked in garage and false otherwise 6. Remove (string reg): Function should remove the car object from garage having reg

Step by Step Solution

3.30 Rating (165 Votes )

There are 3 Steps involved in it

Step: 1

i want this done in c Answer Class Car Attributes make string car Model string reg No string year int Interface Constructor Car string constmake string const model string const regNo int const year co... 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Electrical Engineering questions

Question

cost of the car if be made a down paphear af stise

Answered: 1 week ago

Question

List the nine major components in a database system environment.

Answered: 1 week ago

Question

Calculate the projected NPV.

Answered: 1 week ago