======Part 2====== =====Entries===== ====Entry 1: October 3rd, 2012==== Today was the day I attempted my first "Knowledge-Based Assessment" for Data Structures. I wasn't sure what to expect, and felt relieved to see just four questions. Unfortunately, I realized that I did not know how to properly answer two of the questions. I don't remember us going over the correct answers in class, which could have benefited me greatly. On a more upbeat note, I was able to work through my Menu-Driven, singularly linked list program in class. I try to work through what I can of the programs before asking for help, but am usually unable to get through errors properly without help. ====Entry 2: October 10th, 2012==== In Data Structures, today was all about "stacks." Stacks are another data structure that can be used for storing and accessing data. As I learned, they are very similar to the linked lists that I have been working with for the past several weeks. In stacks, data is stored one node at a time and accessed from the top, down. This concept of stack management is called "FILO" or First In, Last Out. As data is stored into a node, it becomes "pushed" onto the stack, and added on top of the node prior. In order to access a lower node in the stack, you must first "pop" the nodes above, one node at a time. Stack overflow occurs when you are trying to push a node onto a full stack, and stack underflow occurs when trying to pop a node off of an empty stack. A heads up was given on the future assignment for stacks. The four goals were to: 1) Understand the container 2) Have a working implementation of the container (Ex. nodes) 3) Understand the data structure 4) Implement it (manipulate the append/delete functions from linked lists) ====Entry 3: October 11, 2012==== TThe class started off with a polite "coming to Jesus" talk from Matt, in regards to proper code indentation. I knew that indenting was something that I struggled with, oftentimes mixing up the indenting guidelines for my Java class with those of C programming language. Thankfully, Matt also introduced me to his indenting program, that I am now able to use to properly indent code (for the ever-important grading purposes). We also dipped into understanding functions and their involvement in C. Matt informed us that functions will play a crucial role in Recursion (to be learned at a later date). I have struggled with functions (parameters, calling functions, etc) since my days in C/C++. I learned to take a different/more mathematical approach to functions, which helped me grasp a better understanding. Just as in math, all functions return one value. Procedures, on the other hand, return zero values. ====Entry 4: October 24th, 2012==== The friendly, neighborhood ungraded Knowledge Assessment made another appearance today. The questions were very similar to the first assessment taken at the first of the month, with slightly different data and results. Going into this "test," I felt somewhat better about how to break down the code to find an answer close to what is deemed "correct." I still do not have a firm understanding of the basics of C, in my opinion, which causes a great concern for me. At this point in the semester, I am still unable to complete assignments out of the classroom, as I have a disconnect with the language. Matt and Jacob continue to be my lifesavers, and try their best to not just give me the answer. My in-class neighbor certainly means well, but I find myself struggling with keeping up in class and trying to help him on his assignments concurrently. I worry that I will finish the semester with a slightly-above-amateur level understanding of C programming, leaving me missing a vital job skill for the workforce I hope/need to enter in May. =====Keywords===== {{page>datapart2&nofooter}} {{page>discretepart2&nofooter}} =====Experiment 2===== ====Question==== How to implement a basic scoring program for Fantasy Football? ====Resources==== Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment. ====Hypothesis==== In a continuance of my first experiment, I have decided to work on just a small portion of the overall goal. My intentions are to create a short program that will accept a player's statistics, and perform a quick mathematical computation. The result of the computation will be a point value which represents the player's overall performance in that field. ====Experiment==== To test my hypothesis, I will input the following data into the program for a particular player: RB1 Stats - 150 yards rushing, 1 TD, 1 fumble. The scoring is as follows: For every 10 yards rushing = 1 point For every touchdown (TD) = 6 points For every turnover (fumble) = 2 points Expected output: 19 points ====Data==== I entered the data into my FantasyFB program, as specified in my Experiment. The expected end result was: 150 yards rushing = 15 points 1 touchdown = 6 points 1 fumble = -2 points Total points: 15 ====Analysis==== Based on the data collected: * My hypothesis was correct. I was able to quickly (and linearly) write a simple program to calculate point totals for a particular player's stats. Moving forward, I will need to adjust my program to accept more than one player's statistics and calculate multiple point values. Those values will need to be stored in an array or structure that can easily be accessed for comparison against an opposing player's numbers. ====Conclusions==== As stated earlier, I was able to quickly and effectively calculate a point value from inputting one player's stats. My next goal is to build on this program, to accept more players input. Eventually, I hope that my program can be used to calculate a winner between two users and their team's overall point total.