Wednesday, November 26, 2008

assignment 3

I would like to do a maze that change with each stage as you complete it.
I want to progam a soldier image that you command to navigate through the maze.

plants

Assignment 2:
Suppose you are asked to model plants using an OOP program. For each of the following plant-related entities, specifiy the most appropriate item to use for its implementation. For each entity, select one of the following: instance variable, object, method, or class

1. plant height .....class
2. sequence of activities that occur when a seed germinates......variable
3. an indication of whether a plant contains a vascular system.......variable
4. an individual plant.....class

Monday, November 24, 2008

Algorithms

1. What are algorithms used for? is a sequence of finite instructions, often used for calculation and data processing, is a process that calculates something

2. What is a random algorithm?
is the random selection of bits of codes to minimize run time?


3. What is compression?

the process of encoding information using fewer bits.

4. What two “real world” examples does the author give as useful algorithms? Describe them on your blog.
The two “real world” examples use in the author Blog was “Maximum Flow” and “Sequence comparison”. Maximum Flow is the use dynamic programming to determine the best way to get some equipment from one place to another through a network of sorting. Basically dealing with efficiency and time. Sequence comparison calculates the minimum numbers of insertions, deletion, and edits required to transform a sequence of “A” and “ B.”


5. Do you agree that studying algorithms is a useful tool for programmers and computer scientists?
I agree that it can be useful and productive. I understand that it can make the code more efficient and streamline. I now understand the runtime in realtionship to the coding.

Women in computer Science

The reason why i think there are so few women in the Computer Science field is because the "geek" factor. Now if I was a hard core male that think men rule the world i would say it too much technology for them. I really feel that the main reason is because its so broad. What I mean it so many ways to get in to this field that it might be a look upon being too easy. I hope they dont found until I get my degree.

Wednesday, November 12, 2008

Re: Coding Horror

I thought the article was interesting. I also understand the point of view of just the facts. As people had grown and mature so have writing styles. We no longer write or talk like Shakespears, thus today world is fact upfront and get to the point. No emotion or color.

Roderick Tower of Hanoi


private void moveTower (int numDisks, int start, int end, int temp)
{
if (numDisks == 1) moveOneDisk (start, end);
else
{
moveTower (numDisks-1, start, temp, end);
moveOneDisk (start, end);
moveTower (numDisks-1, temp, end, start);
}
}

Wednesday, October 29, 2008

The game

I think the new game is cool. It show how well you can use functions. It also show how well you develop things logically.

Wednesday, October 1, 2008

black jack

1. One player gets dealt cards until he hits 21 or more. 21 is a win, more is a loss.
2. Then add a dealer's hand.
3. Then add face down cards
4. 52 cards in deck consist of 2-10 and J, Q, K(which all 3 of them > has value of 10) and A (which has either value of 1 or 11 ) and there > are 3 suits (diamond,clover,heart,spades)

5. as decks are running > out. If you cut the deck, it's harder game starts over and go back to step
6. if dealer_next is NOT 10 > greater than 0
7. player loses > game continues ,
8. go to step 7 <---------------------- this was > corrected
one correction above