iasteele

 

Nathan

Page history last edited by nathan gramlich 2 yrs ago

 C++ enrichment

march 10th, first class

 

 

    Today in class we learned most of the basics of the C programing language and compiled our own game. Some commands we leared today in class were intigers,Characters,print f commands, print scan commands, if statements, and while loops. combining this we created our own game in Microsoft visual studios. This game we made had us set a dificulty level for the person to gess a number between 1 and 100. In this game we had it randomly pick a number and have the person gess, we let the person have a choice of trying again or terminating the program. We also coded in a score system which told you how many times you gessed to get the number. The commands we started learning at the begining of class today just built on top of the other ones we started learning as the class progressed.At the end of class we had this gessing game totaly done and everything worked out.That is what we did on this first day of the c++ programing enrichment.

 

 

march 17th, seccond class

 

    Today in class we spent the begining 30 minutes reviewing over the basic commands we learned last class by making a program that asks the user to guess a number between 1 and 20. After the reviewing we learned some other commands that were more commonly used then other commands. Some of the new things that we learned were floats, else, for loops unsted of whiles, and many others. Towards the end of class we started a new program that we will be working on for the next cupple weeks.

 

march 24th, third class

 

   All of this class today was spent working on the blackjack program that we started last saturday. It took untill the end of the class to finaly finish the program. This program contained the most functions out of any progam we had writen so far which was about six. At the begining of the class we had to build the deck for the game. Then after that we created the deck we had to make the deck print random cards which we also had to crate on the screen. After we did that we had to create the rules of the game which was just basicly a bunch of if statements followed by printf's. After we created the rules we had to follow we had to had to create the AI for the dealer in the game. After that was done the game was complete and able to be created but only after debuging and recompialing countless times.

 

 

march 31st, last class

    Today we finished up the blackjack program fully. Some of the things that we did to finish up the program was make the ace's equal 11 when they needed to be and add in a counting system. The counting system in this was simular to the one used in the program that we made to guess a number. After we finished this program we started the final test. The final test was to create a program that would ask for your name , ask for two test scores , ask for five homework scores and then printing out the persons grade based on 25% test and 10% for homework.

 

 

 

Comments (0)

You don't have permission to comment on this page.