In my first project for this section I made a simple student class and then included it into the main function of my program. The class had only a few variables. The variables were name and id. I made a function for the class and called inPutData. In inPutData I asked the user to enter the student’s name and then stored the name inside of the variable name. Then I asked the user to enter in the id number of the student. Once I did that, I store the id in the id variable inside of the class. Then I created a student in main and called the inPutData function. This was all that my program did.
For my second project for section 6 I made the same program as before but this time added more functions to my student class. I added a getName function and a setName function, and a setId function and a getId function. In main I created a student called Peter. The first thing I did was get the default name and id and output them to the screen.Then I asked the user to enter in the new id number. Once I got that information I called the setId function inside of the Peter student class. Then I asked the user to enter in the students name. I then did the same thing as before and set the new name inside of the Peter class using the setName function. The last thing I did was output the new id and name on to the screen.