Saturday, November 3, 2018

I/O files

Compare and contrast file I/O and console I/O. How are they similar? How are they different? What happens with file I/O? What steps do you follow to read and to write to a file?
From what I remember we used this to create save states for out games. So we would just type the code for the save states and once you run the code, it creates a text file for the save state. We also did loading in the save state so we would ask the user if they want to load in the save state and if they did say yes, we will load it in. kinda forgot about this moe sorry, this is the best I can give. plus it's 12 pm so I'm hella tired

problem solving


Today's problem was HARD. 
What emotions did you feel while struggling with this problem? How did you feel when you completed it? What problem solving techniques did you use? If you helped others, how did you guide them without giving them the answers? What other areas of your life (job, relationships, other classes, etc) give you tough problems, and how are they similar and different?
I just felt determined to figure out how to solve the problem and when I completed it I felt relieved. My technique was I asked other students to see if I can learn any new knowledge and solve the problem I had in the code. When I am having trouble in my college class it is usually behind on homework and instead of video games after school, I cram homework. 

computer programs in my daily life

Describe a few computer programs you and your family members run into a daily basis- anything from the gas pump or checkout counter at Safeway to specialized software your parents use at their jobs. Are there any that you're curious about? Which would you like to take apart and recreate?
I usually play video games every day and I want to see the code for most of the games I play and possibly recreate them with basic functions. The only software I can think my dad uses is his badge he uses to unlock doors. I would like to know how that software works and possibly try to work on it.

for loops and arrays

Explain why for loops and arrays work so well together. What tasks can for loops complete on arrays? Provide a code example of a for loop being used with an array and explain how it works.
For loops go well together because it can make putting inputs into the array easier. If you need to put multiple numbers in an array at once a for loop can be really useful. for example here is the code for that function. 
for(int i = 0; i<10; i++)
cin>>array[i];
This reads the users input and puts it in the array. 

Local and global variables

Compare and Contrast Local and Global variables. Where are they declared? Who can see and use them? Which ones are generally easier to use and why? Why wouldn't you want to make all your variables global?
Local and global variabal but are used for different things. The difference is where they are declared. Local variables go under main and only the code under main can use them. Global goes above main and all the variables can use it. I would say global variables are easier to use. 

Learning Reflection


Although we still have a few more concepts Dr. Mo would like to cover, at this point we've *officially* covered all the concepts on ACC's intro programming course syllabus. 

Using the wall standards as a reference, tell me which concepts you're the most confused about, and which you're feeling confident about. Be as descriptive as possible, naming specific examples if possible. Are there any concepts I should altogether reteach, or at least provide a second mini-lesson? Are there any you'd like to see me do a youtube video example of? What sort of daily codes would you like to see me assign to help reinforce these concepts? Any other teaching/learning suggestions?
I am comfortable with functions,  loops, basics of Allegro, math problems. I need to review parent classes more because I am still a bit lost about that. I want to learn in depth how the collision works, and lastly, I want to review classes in general.

Array


Describe what arrays are and what they can be used for. Explain why we would ever use arrays and not just make multiple variables. 

Show and explain how to declare an 8-slot char array filled with the letters of the word "Colorado".
The array is a variable that stores things depending on the return type. Using an array makes it easier than using multiple variables. 
char state [8] = {c,o,l,o,r,a,d,o};