Intermediate Programming Assignments

This repository contains assignments for the Intermediate Programming class. Each assignment folder includes the source code for the tasks as well as a compilation script.

Assignments

Assignment 0 (Extra Credit)

  • degree_to_radian: A program to convert degrees to radians.
  • letter_swap: A program to swap letters in a string.
  • subaddition: A program to perform subtraction and addition operations.

Assignment 1

  • base_conversion: A program to convert numbers between different bases.
  • reversal: A program to reverse a string.
  • swapping: A program to swap two numbers.

Assignment 2

  • dot_product: A program to calculate the dot product of two vectors.
  • string_to_word: A program to split a string into words.
  • swap_pointers: A program to swap two values using pointers.

Assignment 3

  • prob1_prob2: A program to initialize a few structs, assign values, reassign the values and print them.
  • prob3: A program to determine the size difference between one array type and a struct type that holds that array type.
  • prob4: A program that dynamically allocates a three dimensional array and adds all the values of that array together and prints the result.

Assignment 4

  • prog1: A program that copies the data from one file to another while converting all characters matching the search key with that of the replace key.
  • prog2: A program that reads a file of 2D coordinates and calculates the bounding box. The output is x_min, y_min, x_max, y_max, x_center, y_center.
  • prog3: A program that parses a CSV file of product data and loads the item into struct.
  • prog4: A program that reads keywords that were parsed from messages on a social media website and allows a user to determine if a keyword is trending or not (keyword is considered trending if there are at least 3 occurrences of the keyword).

Assignment 5

  • vehicle_catalog: A program that reads a CSV file of vehicle data and loads the vehicle data with other features included, it uses a binary search tree data structure to searech for a vehicle.

Instructions

Each assignment folder contains a compile_and_save.sh script which compiles the source code and saves the output. Follow the instructions provided in the respective assignment's README file for compilation and execution.

Submission

Compressed folders containing the completed assignments are available in the Compressed directory.

Additional Notes

  • Ensure you have GCC installed. Refer to the provided GCC Installation Proof Screenshot.png for verification.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.