Wednesday, December 10, 2014

Tweet Eligibility


This code snip checks the eligibility of a "tweet" by verifying that it contains a question, a compound sentence, an exclamation, and that the number of symbols does not exceed a value of max_characters (default, 140).

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?
       There are 41 characters in this sentence. It does not matter that python is storing the string as one byte per character or four bytes per character.

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])


 I think that Python would take ratios of each string, and only display a portion of the strings. So the variable c would contain a[:3], a third of 'one string,' or 3 characters, 'one.' It would then add the ' and ' and b, then display another ratio of c itself, [6:10].

Sunday, November 9, 2014

App Inventor App

Main user screen

Our app operates as a BAC calculator that takes into account time since drinking, the number of drinks, weight of the user, and gender.

The app has 13 variables, of which over half are input by the user. The user specifies his gender, weight, and the number of drinks he has had. Then, the user will click the button labeled "Whats my BAC?"

This will return the user's BAC value which is extracted from an equation that accounts for all of the data the user has entered, as well as a clock to track the amount of hours each drink has been in the user's system.

Main calculation code


The question at the bottom of the page: "Am I Safe to Drive?" will analyze the BAC that was returned previously, and if it is too high, it will tell the user to please, call a cab.
Other code to gain data for the main calculation
Reflection Questions:

1.) Reflect on the creative process you used. What was useful? Discuss your reflection with your partner and then write a reflection individually.
        Our creative process involved a lot of input from each member of our group, and we then decided on a specific task by weighing a number of factors, including feasibility and usefulness. We think that this was useful because it helped us to develop an app that was both possible and useful. I myself agree because if we had not considered these factors we may not have made any progress at all.

2.) Reflect on team dynamic. What helped the team work well together? Discuss your reflection with your partner and then write a reflection individually.
        We used a single computer with input from each other. The computer was mainly used by one person while the other members of the group suggested or drew up plans, or tested other ideas on a different computer. We think this worked well because working over multiple computers sometimes makes for inefficiency. I would agree and found that this method was the best available.

3.) What problem was your app trying to solve? How well does it?
        Our app was an attempt to make a simple, user friendly way to check your BAC and determine if you were safe to drive. It solves the problem, however some coding errors make the data difficult to interpret. It correctly calculates for BAC based on input values and time, but represents the data incorrectly.

4.) Describe the two hardest challenges you experienced when coding this app.
           The hardest challenge (third screenshot, above) was the timekeeping. We had to create a clock that recorded the time when the "Add Drink" button was first clicked, and then record the time again when the "Whats My BAC" button was clicked, subtract the time differential, and then interpret this data as hours to be implemented into the equation. This works, but the problem still remains that the data is represented incorrectly. Mainly, the data seems to be flawed for as long as "Male" is checked. Our code for the male is identical as that for the female, except with changed variables accordingly, so this error has been difficult to solve.

5.) Given more time, how could you improve your game?
         Given more time, we could have fixed the timekeeping issues, the male representation problem, and also implemented additional features such as a variable proof slider, variable oz. slider, and a feature that allows the user to quickly call a cab if his BAC is too high.

AIA File

APK File



Friday, October 17, 2014

Brett Melons Questions ANSWERED

1) Identify how they found Tanya's location.
Tanya's location was found by tracing the pings constantly released by her cell phone.

2) Describe how bits behave.
Bits behave according to a number of seemingly contradictory statements called koans. These koans describe how bits communicate messages through elaborate, extensive patterns of on and off signals, and have no room for imperfection.

3) Analyze the statement, "The data will all be kept forever, unless there are policies to get rid of it", and discuss why this is put in place and a problem.
Data is kept forever as bits in networks everywhere. This can be beneficial or adverse. It helps to promote transparency in governments and personal lives. However, some measure of privacy is necessary in people's lives and even in the government. As such there should be measures to delete data, but it is a delicate balance. If too much data were deleted, it would be too much censorship, but if no data were deleted, we would have no privacy.

4.) Debate the good and bad of technology.
Technology in of itself is not good or bad. It is how people use it and manipulate it that determines its nature. Technology allows us to help feed large numbers of people with massive, interlinked crop cultivation systems. However, that same technology could be used to poison the crop and starve millions.

Wednesday, October 15, 2014

Blown to Bits Questions

Nate Ibarluzea - Blown to Bits Questions

With the digital age, an inconceivable amount of data is stored as an inconceivable amount of bits, for the better or worse of society.

1. Define “bit,” and describe what “koan” means in terms of bits.

2. Create a diagram that shows the beneficial and adverse effects of the digital explosion, with at least two examples in each category.

3. What is outsourcing? How has the digital explosion caused the rise of this problem?

4. The bit has made it capable for messages to be sent across the globe, allowing any person to communicate anything with any person or any number of people. Should the governments of each independent country regulate its outgoing and incoming information, or should it be an international responsibility? Or should there be no regulation at all? Explain.

Tuesday, October 7, 2014



                                                                                                              Nate the Ninja - Activity 1.1.7, Palmer AP Computer Science

Nate Ibarluzea, Corey White, Jakeb Mitchell

 Over one week, our group of three created a videogame in Scratch. Our game was called Nate the Ninja.

Gameplay
1.) Our creative process involved a lot of making and remaking. We had a general idea and then created a game; once we added more ideas, we scrapped a lot of content and started again, until finally getting the full game.
2.) Using multiple computers and experimenting with scripts before adding them to the main game made the work more enjoyable and efficient.
3.) The game turned out alright, as an enjoyable small arcade game. It keeps the player on his or her toes and rewards them for their success with purchasable upgrades and a functional high score board.
Title screen
You Lose screen
4.) Given more time, I'd like to have cleaned up the game a bit and remade it in Scratch 2.0. There could be better visuals or more variables to make the game less repetitive. 

The game is attached to this email.