Friday, December 5, 2014

tweet verifier

  • Create a "Tweet Verfier Code" which checks:
    • No More then 140 Characters
    • That the following Characters were used,  "  !  ?)



Conclusion
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 are in this sentence. Yes it matters, because it will take up four times more space

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 and b are saved in the code and c is defined as a[:3] + 'and' +b. When these variables are called, the code will take what is defined and use it for the variables.




Friday, November 7, 2014

$wagulator

$wagulator- Tip and Tax Calculator

1) When we were brainstorming ideas for the app, we thought of what we would find useful to have on our smartphone, and would solve a problem. This was useful because we found a problem that could be solved by an app.
2) We worked good together to brainstorm ideas, solve problems, and creating code. Everyone on the team put in suggestions for how the app should perform, and solved problems together.
3) We decided that our app should be a calculator for calculating the tax and tip, so before you order a meal, you know how much you will be spending in total.
4)
     a. The first problem we faced while coding was making certain elements of the screen hidden at certain points in the program. This was a tedious task because small errors in the code could set the whole program off, and their was a lot of this type of code.
     b. The second problem was displaying the correct calculated values in the correct place. We overcame this problem by creating algorithms for calculating the values of all five variables. These were then displayed by setting the text of empty text boxes to the correct rounded answer.

5) If we had more time, we could have added more features to the calculator. One of these features would be for the option for a waiter/waitress to send a bill to a customer based on table number and add an option for the customer to add a tip and send the money wirelessly to the restaurant through Google wallet or paypal.

Tuesday, October 14, 2014

Blown to Bits Chapter 1

The big idea of the chapter is protection of the internet and peoples privacy.




Define: Ubiquitous Information




Determine what are the positives and negatives of internet privacy.





Do you think that we need more or less privacy laws for the internet Justify your answer.




In your opinion do you think that the internet is taken over with social media and do you think it should be better protected?






Monday, October 6, 2014

Lesson 1.1.7 - scratch project

I worked with David. We made a snake type game with a train instead of a snake. Some challenges we faced was getting the train car facing the right way as the engine was moving. For the most part scratch was pretty easy to use and David and I work well together and ended up making a decent game that is easy and challenging at the same time.