In CSE-109 Systems Software, we have been given programming assignments on a weekly basis; each one to practice what we’ve learned in lecture. We only have about 5 weeks of the semester left and we have been given 5 assignments. By the end of the semester, we are to have a total of 9 programs that will ultimately be working together and thus we’d have built a medium-sized program. The goal of all our programs is to create a sort of compiler that will handle some language that our Professor will devise.
The purpose of this course is to teach us about the C++ language and introduce us to the C language. Everything we have done thus far has been coded in C++. I would like to share some of work I have done recently.
Our last programming assignment was to create a Hash Table data structure to store String objects and integer data values. The String objects are of our own String class we created on our own in a previous assignment. We learned about how Hash Tables work and different methods of storing data in them. For our assignment we used a method called chaining to store our data. I understand that I am using a lot of jargon, but if you know computer programming or am looking to study it, then you know or will know it eventually.
But enough rambling, in the picture below – on the left is a driver file to test all the code and work I put in to make sure that my Hash Table works correctly. And on the right is the output of what the Hash Table looks like after everything is inserting (and it is correct since our professor showed us what to expect as output)