Table of Contents

Part 1

Entries

Entry 1: January 31, 2012

Today, I fully realized that corning does have verizon's 4g lte service on my way into the class room. This is an interesting fact because it is plausible to stream data from, or to my phone with a more decent upload or download rate thanks to the fast 4g service. I don't fully understand why Elmira doesn't have this service yet. Considering Elmira is also part of the Corning airport loction. I have heard rumors that elmira should have 4g within the next couple of months though. Just rumors though, nothing concrete.

Entry 2: Feb 1st, 2012

Today was very interesting. We worked on a random number generator. I messed around with locations to certain commands and found that the placement of the commands greatly change the output of the program and make it work differently. I fully understand this idea and am happy I was correct.

Entry 3: feb 14, 2012

Today we got our grades for our projects and I got a compliment that actually made me blush in class… talk about embarrasing.

Learning more about array's, I feel really comfortable about arrays.
Got to work on my opus some more and also work on project 1 now.
Wishing myself a fun time.

Entry 4: feb 28, 2012

Pretty annoyed at project 1. It wasn't easy. I had a huge error that we have fixed, but I don't fully understand what the issue was. Atleast its fixed though. I have an idea of what to do with project2 atleast.

Keywords

cprog Keywords

cprog Keyword 1

Standard I/O

Definition

The normal input and output methods of your machine

Demonstration

Your standard input for most machines is the keyboard
Your standard output for most machines is the monitor
fprintf(stdout,“you win”)
scanf(stdin,“%s”, word)

cprog Keyword 2

Header Files

Definition

A header file is a file that the compiler loads and writes into your c file before compiling your own code.
This adds basic functions depending on the header file loaded

Demonstration

Header files are usually written as #include <headername.h>

cprog Keyword 3

Pointers

Definition

Pointers are a block of ram that points to another part of ram.

Demonstration

When you have a pointer, its ram block holds a specific address. That address is the address of what it is connected to. For example we have two variables, one is a point A, and one is just a normal variable B.

We declare that B = 5. We declare that A points to the location of ram where B is. When we call for A itself, it shows us the address of B. When we call A as a pointer, it shows us what is in B, in this care, 5.

cprog Keyword 4

Arithmetic

Definition

Changes to numbers.

Demonstration

There are a several different arithmetic's symbols, a few examples are /,*,-,+. Each one does something different to a number. For example, 2+2. Takes the number 2, adds 2 to it, and makes it 4.

cprog Keyword 5

Type Casting

Definition

Forcing one type of value to act as another.

Demonstration

int help

(char)help

there i am forcing help to act as a char, even though its an int.

cprog Keyword 6

Selection Structures.

Definition

Telling the computer to do something if a specific case is true.

Demonstration

int a int b a = 2 b = 2 if (a == b) {

  a = b + 1

} return()

telling it that if a and b are the same, then make b equal to a + 1.

cprog Keyword 7

Repetition structures.

Definition

Doing the same process over again so long as something is true.

Demonstration

while (x == b) {

 x = b + 1

} return()

doing this loop only once in this situation, but the idea is there so long as x equals b, it will make x = b + 1

cprog Keyword 8

Identification of chosen keyword (unless you update the section heading above).

Definition

Definition (in your own words) of the chosen keyword.

Demonstration

Demonstration of the chosen keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

cprog Objective

cprog Objective

State the course objective

Definition

In your own words, define what that objective entails.

Method

State the method you will use for measuring successful academic/intellectual achievement of this objective.

Measurement

Follow your method and obtain a measurement. Document the results here.

Analysis

Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.

  • How did you do?
  • Is there room for improvement?
  • Could the measurement process be enhanced to be more effective?
  • Do you think this enhancement would be efficient to employ?
  • Could the course objective be altered to be more applicable? How would you alter it?

Experiments

Experiment 1

Does “%.#f” as an example, round or trunkate. the syntax is %.(a number of spaces)(data type).

Question

What is the question you'd like to pose for experimentation? State it here.

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

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Experiment 2

Question

What is the question you'd like to pose for experimentation? State it here.

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

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Experiment 3

Question

What is the question you'd like to pose for experimentation? State it here.

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

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.