Create classes for each of the object types that need to be


(1)Create Classes for each of the object types that need to be stored, as indicated above.

 (2) Create an array of Customer objects. You should populate the array with 4 to 6 customers, entering information into all fields of the Customer object. Again they should be created in "non-alphabetical" and "non-numeric" order as far concerns their last name and customer ID. (Again, see Note #3 in Programming Notes below to understand how to populate Objects with data.)

• Display the total number of customers that exist.

• Print Customer information about each customer. You can either print all information (fields), or print customer ID, last name, first name, boat number, and slip number (excluding address and phone number).(See Notes #4 and #5 in Programming Notes below.)

• (3) Create an array of Boat objects. You should populate the array with as many boats as you have customers (since we assume one boat per customer), entering information into all fields of the Boat object. (The boat numbers in the Customer and Boat objects should match.)

• Present the "total" value of all boats moored at HVM as a sum (in dollar amount, formatted properly).

• (4) Create an array of Slip objects. You should populate the array with 10 slips, entering information into all fields of the Slip object. (Make sure that all customers have a valid slip number in their information, and mark that slip as rented.)

• Display the total number of slips that exist.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create classes for each of the object types that need to be
Reference No:- TGS0664203

Now Priced at $40 (50% Discount)

Recommended (91%)

Rated (4.3/5)