Objective C with XCODE
SEN 970 Object-Oriented Programming in Objective-C Assignment #1: Complete both parts (You can do both parts in ONE program) Part 1: Conditional Logic Conditional logic is used within your application to make decisions during the application lifetime. Objective-C is quite typical of other languages in the syntax and structure of conditional logic, though things get more complicated when attempting to determine if two NSObject-based objects are equal. The main syntax elements you have available are the if statement, the switch statement, and the question mark ? known as the ternary operator in the C programming language. Create a new project in XCode using the Mac OS X/Command Line Tool template.Use at least one case of each of the following:if statement using the == operatorif statement using the isEqualTo: methodcompound logic, using and (&&) or using or (||)Perform a logical test to see if something is not true. Part 2: Methods and Parameters Methods are functions that are defined on a class in order for that class to perform tasks. Often, those tasks involve ivars and properties of the object, and sometimes those tasks require extra information to complete the task properly. This extra information can be passed to the method through parameters. Create a new project in XCode using the Mac OS X/Command Line Tool template. You can use the same project as you created in the first part of this assignment. Create a custom class that contains at least three public methods and one private method. From the main() method in main.m, create an instance of the class and demonstrate calling the methods. At the Apple developer site, track down the official Objective-C documentation. Review the section on properties. The Objective-C Programming Language Submit your source code files as your assignment submission. 2) Question (You can create all 3 parts in ONE XCode Project) Part 1: A Date class Design a class called Date. The class...