ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Objective C using Xcode

by | Nov 30, 2023 | questions

I have a assignment on objective c using xcode i have 2 questions in my assignment. i need the solutions in separate zip file for each question.

Document Preview:

SEN 970 Object-Oriented Programming in Objective-C

Question 1)

Instructions: Ships, CruiseShip, and CargoShip Classes

Design a Ship class that has the following members:

A member variable for the name of the shop (a string).
A member variable for the year that the ship was built (a string).
An initializer and appropriate accessor and mutators using any technique you want.
A print function that displays the ship’s name and the year it was built.

Design a CruiseShip Class that is derived from the Ship class. The CruiseShip class should have the following members:

A member variable for the maximum number of passengers (an integer)
An initializer and appropriate accessor and mutators using any technique you want.
A print function that overrides the print function in the base class. The CruiseShip class’s print function should display only the ship’s name and the maximum number of passengers.

Design a CargoShip class that is derived from the Ship class. The CargoShip class should have the following members:

A member variable for the cargo capacity in tons (an integer)
An initializer and appropriate accessor and mutators using any technique you want.
A print function that overrides the print function in the base class. The CargoShip class’s print function should display only the ship’s name and the ship’s cargo capacity.

Demonstrate the classes in a program that has an array of ship pointers. The array elements should be initialized with the addresses of dynamically allocated Ship, CruiseShip and CargoShip objects. The program should then step through the array, calling each object’s print function.

Question 2)

Project Description:

Create a GUI based application of your choice. This is your opportunity to create your own application that runs on OSX. Do NOT create an iOS (iPhone/iPad) mobile device app, this needs to be a traditional style Mac application that runs on OSX, any version (not mobile device).

Use multiple…

Attachments:


ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!