Answer to Question #22392 in C++ for saif al-qiary

Question #22392
Create a class based on the design shown below. The default constructor would assign specific details determined by the programmer for time and carNumber. The overloaded constructor would assign values for time and carNumber when the object is created. The setModel and setCapacity functions assign values for model of entered car and capacity of car park. The readCarNumber() is a function to remove embedded blanks in a given string
as a car number. For example, if the carNumber is entered WQ R 2467, the readCarNumber() function will return WQR2467 . The toString() function is invoked to display values of all the data. Be wary about using a double variable with string. Complete the program by creating objects of Car Park using both the default constructor and overloaded constructor in the main function. Use the objects to invoke the related functions.

CarPark
- time : double
- capacity : boolean
- model : string
- carNumber : string
+ CarPark()
+ CarPark (t: double, cn : int)
+ setModle(m : string) : voi
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS