Intro to Programming Languages

Project 2.3 Pig Latin & Pointers

In this challenge set, you will be building a Pig Latin translator. You will be building on your prior skills and also gaining experience with some of these skills:

  • Get the length of a string using strlen
  • Concatenate strings using strcat
  • Compare strings using strcmp
  • Copy one c-string to another using strcpy
  • Use & with a local variable to set pointer address to a value on the stack
  • Access a single pointer value using *
  • Demonstrate a diagram of a single pointer in memory
  • Create a pointer that directly points to a location in a c-string
  • Modify pointer address directly using address arithmetic
  • Use a pointer to access elements of an array using address arithmetic and []
  • Search for a string within another string using strstr
  • Extract delimited data from a string using strtok.
  • 4 challenges

    Challenges

    CHALLENGE 01

    P2.3 Level 01 Pig Latin

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 02

    P2.3 Level 02 Pig Latin

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 03

    P2.3 Level 03 Pig Latin

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 04

    P2.3 Level 04 Pig Latin

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location