i want this done in c++ Question: 1 You are hired by a Garage owner to design
Fantastic news! We've Found the answer you've been seeking!
Question:
i want this done in c++
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date:
Students also viewed these electrical engineering questions
-
note: All I want is only to write C ++ code to solve this formula I mean, I don't want to solve mathematically, but I just want C ++ code to find these roots Thank you and I will give you a great...
-
I have a report and i want help in simulation section only, any related system for the below topic is enough, kindly show the codes for matlab. WLL (Wireless local loop) Students will need to run...
-
I want to bring air at 35oC, = 40% to a state of 25oC, = 0.01 do I need to add or subtract water?
-
How do recruitment and selection practices contribute to high performance in an organization?
-
Draw a diagram depicting a firm that is making a profit in a monopolistically competitive market. Now show what happens to this firm as new firms enter the industry.
-
The pattern shown is taken from a quilt design known as a triple Irish chain. Complete the color pattern by indicating the color assigned to each square. 12|3 4 |5 67 89 10 11 12
-
What are the advantages and disadvantages of taking a deposition?
-
What is the control requirement of 351? Describe the effect of the following in satisfying this requirement: a. A shareholder renders only services to the corporation for stock. b. A shareholder...
-
.A car loan of $16,825 is to be repaid by making payments at the end of each month for 4years. If interest is 5.2% compounded monthly, how much is our monthly car payment? Enter your answer to the...
-
Paoli Consulting is a consulting firm owned and operated by Mary Paoli. The following end-of-period spreadsheet was prepared for the year ended March 31, 2019: During the year ended March 31, 2019,...
-
Multiple Choice Questions: 1. Company has three departments: Office, Sales and Production. Table below shows how many people work in each department by gender. Based on this table find probability...
-
When working in a group setting, what are some of the strategies you would implement to encourage group cohesiveness and reduce social loafing?
-
What are 2-3 strategies that enhance ethics, labor relations, and work conditions?
-
Assume f(x) is the closed-form expression for the following summation n 3. f(x) = x=1+ x + x + x + ... + x " i=0 And let g(x) represent the closed-form expression for the following summation: n 9(x)...
-
Journalize the entry for the purchase of office supplies on February 13 for $2,300, paying $255 cash and the remainder on account. If an amount box does not require an entry, leave it blank. Feb. 13
-
Deliverables: 1. [Relative Valuation using Multiples] Estimate the (1) total equity value and (2) per-share equity value of Target using relative valuation approaches. Follow the instructions below...
-
In what ways do issues such as global environment, disease and the internet challenge state sovereignty? why do some believe that the Westphalian era based on the dominance of the sovereign state is...
-
Draw two scatterplots, one for which r = 1 and a second for which r = 21.
-
List the nine major components in a database system environment.
-
Review Figure 11-6 and answer the following questions based on it. a. What has happened between Input and Input'? b. Assume that the values associated with each of the keys (kl, k2, etc.) are counts....
-
Give four reasons why many system designers believe that data modeling is important and arguably the most important part of the systems development process.
-
Solve Chapter Problem 13.21, assuming the force is narrowband with a power spectral density given by \(S_{F}(\omega)=\frac{3 \times 10^{-3}}{2+5 \omega^{2}}\). Data From Chapter Problem 13.21: A SDOF...
-
Solve Chapter Problem 13.21, assuming the power spectral density is band limited with \(\omega_{1}=50 \mathrm{rad} / \mathrm{s}\) and \(\omega_{2}=200 \mathrm{rad} / \mathrm{s}\). Data From Chapter...
-
Fine Leather Ltd has provided the following production and sales information for each pair of its dress shoes. The fixed costs for the period are \($1\) 125 000. Required (a) Calculate the...
Study smarter with the SolutionInn App