Friday, December 12, 2014

loops

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.

its way is slow and has lager windo for humin errer.

Name a large collection across which you might iterate.

to find incrrect words in a word doc.

1.       What is the relationship between iteration and the analysis of a large set of data?

they both look for certan information in a large set of data just use diffent ways of finding them.

Monday, December 8, 2014

tunip work

#15
import random a = random.randint(1,6)
b = random.randint(1,6)
c = a + b

16
import random
a = ['a','b','c','d','e','f','g','h','i','j','k','l','n','m','o','p','q','r','s','t','u','v','w','x','y','z']

c = random.choice(a)

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? 

c is a list and b is a string.

1.       Why do computer programming languages almost always have a variety of variable types? Why can't everything be represented with an integer?

it makes it easyer to represent when dealing with mass amouts of integers.

strings

my code for the tweet checker:

def tweet_good(post):
Error = 0
if len(post) > 140:
print "Too long"
if len(post) <140:
print "all good size"

else:
Error = Error + 1
if '!' in post:
Error = Error + 1
if ',' in post:
Error = Error + 1
if '?' in post:
Error = Error + 1
if '"' in post:
Error = Error + 1

else:

if Error >= 5:
print "all good"
if Error < 5:
print "missing things"









tweet check



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 that sentence. it dosent matter because there all the same just characters to python it wouldnt matter.

1.       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.

with only line 3 you would get (one and another), but with line 4 it only would say (d a).

Thursday, November 6, 2014

matching game app






as a group we came up with various ideas of what we wonted our app to be. we had ideas about a timer but settled on the idea of a matching game, but settled on a matching game app. making this game made additions to the game limited. Che had the idea of adding a score counted we add but other ideas wouldn't fit in to the game.

team work was hard to do we found with coding but ideas were made quickly and efficiently with the group. Che didn't struggle much with the coding this made it difficult for others to input on coding help but moved the project along faster.

this app helped with boredom. if there's nothing to do this app is an easy way to get by that.

the biggest challenge we had with coding was with trying to get the app to recognize that a mach was selected. we had to make numbers to each of the "cards". Alowing to app to see that when numbers 1 and 4 were selected to leave them facing up.

with more time a better scoring system could be added along with a timer.player vs. player could be added to it if given the time each player could play to complete the puzzle.

https://drive.google.com/file/d/0ByV5bGTV8jCHNTRLVUJwTlVndW8/view      <--- app here

Thursday, October 23, 2014

app question

11.App inventor is similar to Scratch because it uses the block click and drag system to program.


It is different because app inventor allows you to use more complicated code. While Scratch is more simple coding. you cant see the costumes and where they will be in the sprite menu. 

2. they will be grater amout of people woking on these apps for mobile will greatly increace the amout of app avalible and the consumer base for app creation and editing software. 

Friday, October 17, 2014

app inventor

Ryan Braun

1.       App inventor is similar to Scratch because it uses the block click and drag system to program.
It is different because app inventor allows you to use more complicated code. While Scratch is more simple coding.


2.       Mobile programing is different than a lab top programing because you are dealing with on Mobile no keyboard and fingers on a lob top you have to program for a keyboard and a mouse there position values will be different and they don’t work the same.

Thursday, October 9, 2014

maze game

Ryan Braun
ap computer



1. we used the tacit of assign jobs. because we were so differentiate in our skills levels we used jobs to look at our ideas. 

2. with our jobs we were able to create a good game idea spiting up then sharing our ideas. we were able to work as a group better with the job idea.

3. our group was able to move quickly by assign jobs.

4. bug fixing, it was hard to bug fix because their was no one on that task.

5.more maps and more bug fixing.