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.
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.
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.
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.
Standard I/O
The normal input and output methods of your machine
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)
Header Files
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
Header files are usually written as #include <headername.h>
Pointers
Pointers are a block of ram that points to another part of ram.
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.
Arithmetic
Changes to numbers.
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.
Type Casting
Forcing one type of value to act as another.
int help
(char)help
there i am forcing help to act as a char, even though its an int.
Selection Structures.
Telling the computer to do something if a specific case is true.
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.
Repetition structures.
Doing the same process over again so long as something is true.
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
Identification of chosen keyword (unless you update the section heading above).
Definition (in your own words) of the chosen keyword.
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$
State the course objective
In your own words, define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
Does “%.#f” as an example, round or trunkate. the syntax is %.(a number of spaces)(data type).
What is the question you'd like to pose for experimentation? State it here.
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.
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.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
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.
What is the question you'd like to pose for experimentation? State it here.
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.
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.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
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.
What is the question you'd like to pose for experimentation? State it here.
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.
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.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
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.