Create an array of Boat objects...solved

Create an array of Boat objects...solved

Continuing from a Question you answered last week... (I have also attached the cs files from last week and the instructions in a Word Doc)

 

From Microsoft Visual C# 2008: An Introduction to Object-Oriented Programming 3rd Edition

 

Utilizing Microsoft Visual C#, please answer the below questions.

 

Your tasks for Unit 3 are:

·         (1) Create Classes for each of the object types that  need to be stored, as indicated above. (See Note #3 in Programming Notes  below.)

·          

·         (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.

·         Print out all information for the slips that are currently rented (only).
Powered by