User Tools

Site Tools


opus:fall2012:lalexan3:part1

starting the opus

First Day of Class

We got to meet the class and enjoy getting the concept of the class. looking forward to the semester

Entry 1: August 29, 2012

today was the first day of classes for data structures. we learned what lab 46 is and trying to understand how to navigate this type of operating system. today is actually 9/14/12 but i didnt know that you had to update thiese pages so im doint it all now. hope it wont count against me.

Remember that 4 is just the minimum number of entries. Feel free to have more.

Entry 2: september 5, 2012

we are saveing files as .c files and working at home to access the web sites. i am having trouble with accessing this at home but that is because i didnt know what port to use now i know that it is 22 and am not having anymore touble so far. i am also getting the definition to my keyword and have set up a time to meet with a tutor. this stuff is hard and time consuming

Remember that 4 is just the minimum number of entries. Feel free to have more.

Entry 3: september 12, 2012

This week we had home work that we are supposed produce an ouput for the bignum program that makes chars one and two store a number larger than 255 bytes. had to get some help from the tutor. completed the work on pointer assignment Remember that 4 is just the minimum number of entries. Feel free to have more.

Entry 4: september 19, 2012

today for class we started creating nodes and node pointers. we use nodes to hold information which can hold additional nodes or become NULL. a node can only be pointed to another node or become NULL. we also created link lists, a link list shows the pattern or direction of the node in which it is traveling. we do this be using next with arrows→.

This had been a difficult journey because including insertion and deletion into our doubly linked lists has become a very irritating annoyance, however anfer my study times with Saad Malik my programming on this has improved.

Remember that 4 is just the minimum number of entries. Feel free to have more.

Keywords

words are

pointer assignment, and address of

Definition

Pointer assignment The pointer assignment statement causes a pointer to become associated with a target or causes the pointer's association status to become disassociated or undefined. this means that a pointer or (*) can force a pointer or word or number to be paired with another or not depending on how it is used.

(Address Of): This is the hexadecimal location of a variable in memory or storage.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 1= google.com
  • Reference 2= yahoo.com
  • Reference 3= wikipedia.com

data Keyword 1 Phase 2

stack underflow condition

Definition

In computer science, a stack is an area of memory that holds all local variables and parameters used by any function, and remembers the order in which functions are called so that function returns occur correctly. Each time a function is called, its local variables and parameters are “pushed onto” the stack. When the function returns, these locals and parameters are “popped.” Because of this, the size of a program's stack fluctuates constantly as the program is running, but it has some maximum size.

One way of describing the stack is as a last in, first out (LIFO) abstract data type and linear data structure. A stack can have any abstract data type as an element, but is characterized by two fundamental operations, called push and pop (or pull). The push operation adds a new item to the top of the stack, or initializes the stack if it is empty. If the stack is full and does not contain enough space to accept the given item, the stack is then considered to be in an overflow state. The pop operation removes an item from the top of the stack. A pop either reveals previously concealed items, or results in an empty stack, but if the stack is empty then it goes into underflow state (It means no items are present in stack to be removed). A stack pointer is the register which holds the value of the stack. The stack pointer always points to the top value of the stack.

A stack is a restricted data structure, because only a small number of operations are performed on it. The nature of the pop and push operations also means that stack elements have a natural order. Elements are removed from the stack in the reverse order to the order of their addition: therefore, the lower elements are those that have been on the stack the longest

References

List any sites, books, or sources utilized when researching information on this topic.

"The C Programming Language 2nd Edition By Briand W. Kernighan and Dennis M. Ritchie"

Demonstration

Demonstration of the indicated 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>
#include <stdlib.h>
 
int main()
*egg
*floor
{
    printf("egg is held four feet from floor");
    if
       {
         egg is dropped to the floor = egg breaks;
       }
    else
    {
      egg is not dropped from four feet in the air = egg does not break;
    }
    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$ 

Experiment 1

Question

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

What will happen if you drop an egg from four feet in the air to hit the floor at an approximate speed of(unknown). What will be the ending result.

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. get head ponderer image and post in conclusion for if not broken after 4 ft fall.

The usage of google.com and the abundance of materials such as a floor, paper towels (for clean up), an egg (essential for this type of experiment), person to drop egg form the four foot level, garbage can with a garbage bag installed in it properly(also for clean up), along with some old clothes that will be necessary for the splash zone if one might occur.

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.

I think that if the egg is not cooked or modified in anyway, the egg should crack open and splatter on the surface of the floor.

However:

If the egg is hard boiled or been modified in some way, then the shell may just crack, and or split open on the surface of the floor.

Experiment

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

I first collected all the necessary resources that were mentioned above and began to plan out where and how this experiment will be executed. I have decided to execute this experiment in the kitchen of my apartment where i believe there will be less aftermath to clean up. i will also need a tape ruler from the closet and an egg and a writing utensil and a plate and a garbage can and a garbage bag in the garbage can and some paper towels. I will gather these materials before my experiment and prepare myself in some old clothes. I will then be prepared to follow through with his experiment.

Data

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

I get dressed in to some old clothes. I am going to get a normal chicken egg from the carton in the refrigerator, then i set the egg on to the center of the plate in the middle of the left tide of the table in the kitchen. I then walked to the hallway closet and grabbed a tape ruler from the second shelf and brought it into the kitchen and set it on the table two inches left from the plate where the egg is laying down. I then turned to the kitchen closet and obtained in my right hand a roll of paper towels and waled back to the kitchen table and placed them on the other side of the plate where the egg was placed and across from where the tape ruler was placed. I in turn proceeded to take the tape measure and stretch the ruler part of it to extend 4 feet from the floor. I then marked on my shirt where that point of four feet was then pushed the ruler part back into the tape ruler. I now pickup the egg from the center of the plate with my right hand and hold the egg up evenly with the mark on my shirt that i made previously. I carefully eyeball measure that the egg is indeed level with my shirt marking and proceed to drop the egg to the floor. The egg falls rapidly as expected and hits the floor with a “splat” sound. the shell of the egg splits and shatters on impact and the yolk and filling inside the shell of the egg splatters and projectiles shoot out in all directions in a 3ft. to 5ft. radius from the point of impact. I took notes on what i heard, smelled, and seen and proceeded to take the paper towels from the kitchen table and unraveled the roll until there was 3 perforated portions of paper towels and ripped after the third perforated portion. i take the three paper towels and fold then neatly along the perforated lines and begin cleaning the remains of the egg shells and yolk portions that where on the floor and threw them into the garbage can that was located in the far left corner of the kitchen. I continued this procedure until the remnants of the egg was completely removed from the surface of the floor. I then posted my findings on this portion of my opus and put all the of used materials into their proper places in the closets.

Analysis

Based on the data collected:

  • Was your hypothesis correct? Yes, i believe that what i thought was going to happen did indeed occur.
  • Was your hypothesis not applicable?no it applied to the experiment soundly executed perfectly
  • Is there more going on than you originally thought? (shortcomings in hypothesis) Yes, there was much more planning and underlying thought into this than expected.
  • What shortcomings might there be in your experiment? Yes , the mess that was created from the experiment was greater than expected. It get on everything
  • What shortcomings might there be in your data? forgetting that i didn't mention the writing tool that i was going to be implementing in this experiment in all of the areas that i mentioned.

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.

The experiment of what will happen wen a person drops an egg form a 4 ft. secured location in the air, to a hard surface creates a pretty significant mess to clean up. If the egg was hard boiled or modified in some way then the mess may not have been so significant. However, if it were a rotten egg and a cloud of mold spores created a poof cloud on impact then it might have been a worse clean up job than anticipated. Over all i am glad that i did this experiment and enjoyed the facts that i discovered while performing it. I in turn leaned a great deal from this and will use my experience in future tasks.

If the egg didnt break on impact as i originally expected then i would be very surprised and confused — Lance 2012/09/29 11:52

opus/fall2012/lalexan3/part1.txt · Last modified: 2012/09/29 16:05 by lalexan3