Cash-back offer from April 23rd to 27th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question Details Urgent
$ 25.00

Unit 5 Project Assignment

Question posted by
Online Tutor Profile
request

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.

Available Answers
$ 30.00

[Solved] Unit 5 Project Assignment A+

  • This Solution has been Purchased 1 time
  • Submitted On 27 Oct, 2016 11:52:40
Answer posted by
Online Tutor Profile
solution
Use the Boat class you created in Unit 4. ยท Use the Slip class...
Buy now to view the complete solution
Other Related Questions
User Profile
godfa...

The benefits of buying study notes from CourseMerits

Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton
Only 45 characters allowed.
closebutton

$ 629.35