Wednesday, December 17, 2014

1.3.8

1.3.8 While Loops
Number Guesser

Conclusion:

1. If you change between 1 and 20 from the previous program to between 1 and 6000, how many guesses will you need to guarantee that you have the right answer? Explain.

6000 because there are 6000 numbers one can guess so someone could guess every number except the right one, then the last guess would be the right one, which would add up to 6000 guesses.

2. Describe the difference between a while loop and a for loop.

A for loop repeats a block of code for every time an event occurs. A while loop repeats a block of code so long as a condition remains true.

Sunday, December 14, 2014

1.3.7

1.3.7 For Loops

Mastermind


Lottery Ticket



Questions:
1. Sometimes code using an iterative loop can be written without a loop, simply repeating the iterated code over and over as separate lines in the program. Explain the disadvantages of developing a program this way.


If a program is developed this way, it will take up much more space, be more time consuming, and take longer to run than if the code were just created with a loop.

2. Name a large collection across which you might iterate.

A collection of music, perhaps to make sure two directories have the same exact songs and to fill the ones that are missing from each other. my collection has about 900 songs, and the are people with much bigger ones out there.



3.What is the relationship between iteration and the analysis of a large set of data?
One can generate a program to iterate a block of code that preforms an action on each datum in the set. For example, a program could examine a set of numbers and for each number that is over 10, increase a variable by 1.

Monday, December 8, 2014

1.3.6 Tuples and Lists

1.3.6 Tuples and Lists




Conclusion

1. Consider a string, tuple, and list of characters.

In []: a = 'acbde'

In []: b = ('a', 'b', 'c', 'd', 'e')

In []: c = ['a', 'b', 'c', 'd', 'e']

The values of a[3], b[3], and c[3] are all the same. In what ways are a, b, and c different?

a is a string, b is a tuple, and c is a list.

2. Why do computer programming languages almost always have a variety of variable types?
Not everything can be answered with one variable type. For example, some situations require a true

or false statement whereas others require a number. These varibales would have to be two different types.

3. Why can't everything be represented with an integer?

Not all situations require an integer. Some require a true or false. Others require a float in that the decimal places need to be accounted for.

Thursday, December 4, 2014

Tweet
1.       How many characters are in this sentence? Does it matter whether Python is storing the string as one byte per character or four bytes per character?

41 characters. Yes becuase unicode uses four bytes per character, and ASCII uses one byte per character. unicode offers a wider range of characters.

2.      This question asks you about something you have not learned. In fact, the question is asking about details that go beyond what you will learn in this course. However, wondering what is going on at a lower level of abstraction – and talking about it – can be a useful strategy when learning about computing.

Describe what you think occurs in memory when the following code is executed.

In []: a = 'one string'
In []: b = 'another'
In []: c = a[:3] + ' and ' + b
In []: print(c[6:10])
a is stored, and b is stored. c is stored as 'one' from a, a new part; ' and ' and b. then the print command calls c, but only characters 6 through 10; "d an"

Wednesday, November 19, 2014

Blown To Bits
Chapter 2:

1. Define an RFID and explain its function.



2. Illustrate (with words) how a government could abuse RFIDs, and explain why it would be so easy.



3. A document printed from a laser printer can be traced back to that printer and thus to the person who printed it. Describe how this can occur and elaborate on your opinion of whether this is a good or bad thing.



4. Some parking garages take photos of the licence plate of a car when entering. Create a situation that is completely legal where this might be a bad thing.



5. Determine how information, such as time stamps, from having an E_ZPass could be a hinderance, if you are not doing anything wrong.

Tuesday, November 4, 2014

Text bombing Application

Description:
This app allows you to send up to 500 text messages at once to one person. This is known by many people as "Text Bombing" and is annoys a lot of people. However, it is very fun to do to people. You pick a person from your contacts using the "Phone Number" button. Then you type whatever you want to say in the text box. next you adjust the slider for how many texts you want to send. The number next to the slider is how many texts that will be sent. When you are ready, click the "Send" button and wait for your friend to be irritated with hundreds of texts.

https://drive.google.com/file/d/0B73rAyJ5mEH5Um82ekJxU2hETDA/view?usp=sharing

Conclusion Questions:

  1. We brainstormed for ideas, chose one and determined how we would accomplish it. Then using a feedback loop we went into development and completed the goal we set out to accomplish. overall it was a very simple creative process. It was rather useful. I believe it was not very restricting which was a good thing. this is because you can go back and redo steps if necessary. 
  2. Our team worked very well together because we know each other and are friends. We enjoy each others company which makes working together a lot easier. Very little disagreements arose but the ones that did we resolved logically.
  3. Our App was trying to solve the problem of boredom and give a way to send mass amounts of texts to one person when you have a smart phone. smart phones cannot do this very efficiently but this app does it for you.
  4. The hardest challenges to overcome were getting the app to send a text message and figuring out why a "run-time error" kept popping up. We solved it by making a side app just to send one text and figuring out why texts were not being sent. We accomplished this by changing the message being set when the message box lost focus, to the message being set when the "Send" button was pressed. Once we accomplished this the "run-time error" went away as well. so we took out two birds with one stone here.

     5. Given more time, we could add a sound file that plays in the background. We could also add a phone number box that allows you to type phone numbers manually. Lastly we could add the ability to send many text to multiple people through phone numbers and emails.







Thursday, October 16, 2014



Blown To Bits Response Questions


Identify why people continue to improve the ways that technology and information are spread throughout the world. even though we are able to sustain ourselves as we are now?

People continue to improve our methods of spreading technology and information across the globe because we can. Not only can we, but to be able to do it faster, more efficiently, and generally better would be beneficial to everyone because it would make spreading the information easier. People like things when they are easy usually.
Determine the differences between information that is taken and reproduced by hand as opposed to information that is digitally reproduced and transferred to others.



Information reproduced by hand contains flaws because "To err is human" (6) and if humans are copying things, generally there will be an error somewhere. Digitally reproduced things, however are no where near as likely to contain errors. Bits are not flawed, and even if a bit or two gets corrupted, networks check to see if any bits were corrupted in transition and if they were the network will automatically repair them.

Debate why the spread of information was a positive impact for people or a negative impact.


In reality, it was, and is both. It was a positive in the fact that if a scientist in America makes an important discovery, it can be implemented in research in Europe as soon as the American scientist uploads his findings to the internet. The European scientists do not have to wait for written documents or the scientist himself to arrive in Europe. It is bad because data that could be protected by copyright could easily be plagiarized or pirated becuase every bit that made up the original song is the exact same as the bits that make up the copy.
Draw a graph of the way that the size of memory has changed over time.




3. The statement "Computing will transform society" is valid, however the statement "Computing will, and has already begun to transform society" is more accurate. No longer do people need to have roomfuls of paper, and written records. Now people can have countless documents all stored on one computer that can be as small as a phone. "Bits behave strangely. They travel almost instantly, and they take up almost no space to store" (4). Not only can documents stored in the form of the incredibly small bit be put practically anywhere, but the can be sent from one person to another, no matter the distance with ease. this means people from halfway across the world can talk to each other in a matter of seconds. People do not have to leave their house to send a message or pictures to someone. Alongside this, information is easily reproducible. "Every copy is perfect. If you email a photograph to a friend, the friend won't receive a fuzzier version than the original. The copy will be identical" (6). With the ability to transfer perfect copies indefinitely, information can be reproduced en masse, without errors, and put all over the web. This can create problems depending on the information. If it is a person's personal information, it can ruin their privacy like it has so many people already, and so many more are to come. Also it can possibly make people dumber by creating a lack of interest in learning when anything can be looked up instantly on, for example, a smartphone. Lastly, songs,books and even movies can be pirated because of how easy it is to duplicate and transfer bits. It can also can be a good thing however. The wealth of correct information online can be used as a resource for a student researching a certain field, a consumer trying to make a purchase, or a scientist trying to verify his or her results, all without leaving the room. Overall Computing has changes society in many ways, but there are many more ways that have yet to be seen. whether they will do more good than bad, or the opposite, is yet to be seen since we are still in the middle of a technological revolution.

Wednesday, October 15, 2014

"Big Idea" and Questions

Main Idea:
The unfathomable amount of data, stored in the form of the bit, can be used in remarkable ways to change the world, whether for better or for worse.

Questions:
   1. Name 3 things that can be made of bits. Ex: Photographs
   2. If bits, like ideas, are non-exclusive, and non-rivalrous, then ideas can be taken from one person and applied by another. Draw a conclusion on how this could be a good thing, and how it could be a bad thing.
   3. If 2,000,000,000,000,000,000,000 bits was the amount of data stored in 2007 then more data is probably being stored today. This includes everything on the internet from emails to bank transactions. Should the government have access to all this information or should there be restrictions in place? Justify your answer.

   4.Determine whether this rapid change in technology is a good or bad thing. Do the pros outweigh the cons, or is it the other way around?

Thursday, October 9, 2014

Nate The Ninja - Activity 1.1.7 Scratch Game

Corey White, Nate Ibarluzea, Jakeb Mitchell

Our Group created an original game called Nate The Ninja.



 1.) Using the Scrum Creative process worked very well. our group met and discussed daily goals at the beginning of each class and did our best to accomplish those goals. whatever was not accomplished we chose one person to try and finish the work at home.We Created and recreated several times. but in the end we combined all of our ideas into a fun working product.

2.) Our team worked very well because we are friends. Also in a rare case a disagreement did occur, we just used majority rules to decide on what to do. Overall, we worked very well together.

3.) The final version of the game went well. we had a failed version of the game or two that did not get very far in production, even through they were based around the same idea. Team cooperation was very good as well as learning how to use the Scratch interface to create a playable, fun game. 

4.)We struggled a bit with the design of the game and it took a little while to figure out exactly how we wanted the game to look. once we did however, pretty much everything else went smoothly.

5.) Given more time, we could add more power ups that would scroll across the screen randomly. we could also add more upgrades and better upgrades that cost more. lastly, we could change how far the light reaches and make it reach further                                                                      as the level increases