Your tasks for Unit 5 are: · Use the Boat class you created in Unit 4. · Use the Slip class you created in Unit 4. · Create the extended Classes for each of the object types indicated above (Covered Slip and Sailboat). · Create appropriate Methods for each Class as you solve the programming tasks performed in this Unit (which will include getters and setters, and a class constructor that takes all elements of the extended class with its base class). (See Note #2 in Programming Notes below.) · Create an array that contains covered slips, populate the array with 5 to 7 objects, setting all fields in the extended and base class. (See Note #3 in Programming Notes below.) · Create an array that contains sailboats, populate the array with 5 to 7 objects, setting all fields in the extended and base class. (See Note #3 in Programming Notes below.) · Prompt the user for a sailboat ID: o if the sailboat ID is valid, return the height of the boat and the value of the boat (using "getter" Methods from the SailBoat/Boat classes) o (If they enter an invalid boat ID, inform them of such.) o (No need to prompt the user for more boat IDs; just demonstrate this function once in your program; i.e. only ask for one sailboat ID, then continue on in the program.) · Prompt the user for a covered slip ID: o if the covered slip ID exists, tell (1) the height of the slip (2) if it has a door or not, and (3) whether the slip is rented or not (using "getter" Methods from the CoveredSlip/Slip classes). (See Note #3 in Programming Notes below.) o (If they enter an invalid slip ID, inform them of such.) o (No need to prompt the user for more covered slip IDs; just demonstrate this function once in your program; i.e. only ask for one slip ID, then continue on in the program.) Unit 5 Programming Notes: 1. Because you are using some of the same Classes you created in Unit 4 (and will be instantiating your objects with some of same data you have already created), you should copy your Visual Studio solution to create your Unit 5 Project. You can then add Methods to your Class files for Unit 5. (As in Unit 4, even though you will be submitting four separate .cs files, it is suggested that you create them all as one Visual Studio Project, if that is what you are using for your C# programming.) 2. For creating a constructor that will populate the extended class and the base class, see the discussion and examples on page 337 of your textbook. 3. Because you will only be creating SailBoats and CoveredSlips, you can modify your array types and the data you use to instantiate these extended objects. Unit 5 Deliverables: · A boat Class file with indicated Methods defined (ok to leave methods from previous Units). · A sailboat Class file with indicated Methods defined. · A slip Class file with indicated Methods defined (ok to leave methods from previous Units). · A covered slip Class file with indicated Methods defined. · A main C# test program that carries out the processes indicated above.
Your tasks for Unit 5 are:
· Use the Boat class you created in Unit 4.
· Use the Slip class you created in Unit 4.
· Create the extended Classes for each of the object types indicated above (Covered Slip and Sailboat).
· Create appropriate Methods for each Class as you solve the programming tasks performed in this Unit (which will include getters and setters, and a class constructor that takes all elements of the extended class with its base class). (See Note #2 in Programming Notes below.)
· Create an array that contains covered slips, populate the array with 5 to 7 objects, setting all fields in the extended and base class. (See Note #3 in Programming Notes below.)
· Create an array that contains sailboats, populate the array with 5 to 7 objects, setting all fields in the extended and base class. (See Note #3 in Programming Notes below.)
· Prompt the user for a sailboat ID:
o if the sailboat ID is valid, return the height of the boat and the value of the boat (using “getter” Methods from the SailBoat/Boat classes)
o (If they enter an invalid boat ID, inform them of such.)
o (No need to prompt the user for more boat IDs; just demonstrate this function once in your program; i.e. only ask for one sailboat ID, then continue on in the program.)
· Prompt the user for a covered slip ID:
o if the covered slip ID exists, tell (1) the height of the slip (2) if it has a door or not, and (3) whether the slip is rented or not (using “getter” Methods from the CoveredSlip/Slip classes). (See Note #3 in Programming Notes below.)
o (If they enter an invalid slip ID, inform them of such.)
o (No need to prompt the user for more covered slip IDs; just demonstrate this function once in your program; i.e. only ask for one slip ID, then continue on in the program.)
Unit 5 Programming Notes:
1. Because you are using some of the same Classes you created in Unit 4 (and will be instantiating your objects with some of same data you have already created), you should copy your Visual Studio solution to create your Unit 5 Project. You can then add Methods to your Class files for Unit 5. (As in Unit 4, even though you will be submitting four separate .cs files, it is suggested that you create them all as one Visual Studio Project, if that is what you are using for your C# programming.)
2. For creating a constructor that will populate the extended class and the base class, see the discussion and examples on page 337 of your textbook.
3. Because you will only be creating SailBoats and CoveredSlips, you can modify your array types and the data you use to instantiate these extended objects.
Unit 5 Deliverables:
· A boat Class file with indicated Methods defined (ok to leave methods from previous Units).
· A sailboat Class file with indicated Methods defined.
· A slip Class file with indicated Methods defined (ok to leave methods from previous Units).
· A covered slip Class file with indicated Methods defined.
· A main C# test program that carries out the processes indicated above.
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|