iOS Development

Course No. 10-152-139

Assignment 11-1

Structs!

  • Create a new Xcode command-line project. Name the project Assignment-11-1.
  • Add #include <objc/objc.h> to the main.c file.
  • Define a new struct before the main function that will hold the following information used by a pet adoption agency.
    • Pet name
    • Pet type
    • Pet breed
    • Gender
    • Weight
    • Food
    • Neutered?
    • Age
  • Write a function that has one parameter for the struct. The function will output the following with a printf statement with sample data.
  • In the main method call the above function several times with different struct variables that hold data about various pets.