Ursinus CS 174: Object Oriented Programming, Fall 2020

Drills

Below are a bunch of interactive exercises to help you practice fundamental concepts. If you are stuck on a particular topic, I may suggest working through one of these as a refresher. Otherwise, feel free to go through them at any time.

Arrays

  • Count the number of zeroes in an array
  • Print the elements of an array separated by commas
  • Compute the mean of an array
  • Create the reverse of an array
  • Insert an element in the middle of an array
  • Create an array with 3 elements in sorted order
  • Find index of the minimum element in an array

Miscellaneous

  • Count the number of vowels in a string
  • Use a HashMap to keep track of the characters and their counts in a string

Menu

  • General
    • Overview
    • Technology Logistics
    • Homework
    • Grading
    • Classroom Environment
    • Participation
    • Collaboration Policy
    • Other Resources / Policies
  • Software
  • Schedule
  • Style Guide
  • Drills
  • Labs
    • Lab1: HTML Holidays
    • Lab2: Choose Your Own Adventure
    • Lab3: Drawing Shapes with Inheritance
    • Lab4: COVID Polymorphism
    • Lab 5: My ArrayList
    • Lab 6: Road Detection with Threads
    • Lab 7: C++ Bug Hunt
  • Assignments
    • HW0: Warmup
    • HW1: Make Your Virtual City
      • Art Gallery!
    • HW2: Markov Mashups
    • HW3: Deque Fires
    • HW4: Consonant/Vowel Filtering in Audio
    • HW5a: Basketball Hashing
    • HW5b: Shazam
  • Pre-Class Modules
    • Module 1: Classes Intro
    • Module 2: Hash Maps
    • Module 3: Inheritance1
    • Module 4: Linked List Removal And Iterators
    • Module 5: Threads And Synchronization
    • Module 6: C++ Basics
    • Module 7: Addresses And Pointers
    • Module 8: Pointers Continued
    • Module 9: C++ Classes
    • Module 10: C++ Object References / Linked Lists
    • Module 11: ADTs / Linked Map
    • Module 12: C++ Inheritance
    • Module 13: Recursion And STL Vectors
    • Module 14: Recursion Part 2
    • Module 15: Binary Trees Intro
    • Module 16: Binary Trees Level And Depth
  • Class Exercises
    • Week 1: Building The 2048 Game Together
    • Week 5: Sorting Tweets
Announcements

© Christopher J. Tralie. All rights reserved. Contact chris.tralie@gmail.com. Design: HTML5 UP.