# data[].attributes.body
Thanks, these are really cool ideas

# data[].attributes.body
yeah

# data[].attributes.body
Can you guys share your project ideas in the whole class meet up in a min or so?

# data[].attributes.body
neat

# data[].attributes.body
I was finishing my CS Fair which will take the information you enter about yourself to give you a plan, the array is just storing all of person1 info then so on for person 2 etc.

# data[].attributes.body
woah thats cool

# data[].attributes.body
I'm using an array to store the location of "pixels" to make an image

# data[].attributes.body
so the array is the answers

# data[].attributes.body
i made a trivia and and the answers to the trivia are numbers

# data[].attributes.body
What is your project and how are you using the array?

# data[].attributes.body
What is your project and how are you using the array?

# data[].attributes.body
also me

# data[].attributes.body
me

# data[].attributes.body
who else is here

# data[].attributes.body
hello

# data[].attributes.body
The way the starter app is set up, it does become public. Under authentification in google firebase you can control if an email is required or add and if statements directly to code to insure only a certain user name has access to information n

# data[].attributes.body
I'm not sure if other users could look at a persons goal or if only the user who created it can, (wasn't sure how to check that)

# data[].attributes.body
no....it's basically the same set up as the posts are except that when the user creates a goal, it doesn't appear on any of the posts layouts, only the goal layout, but they could add comments with steps

# data[].attributes.body
Didn't have any issues, surprisingly.

# data[].attributes.body
Do you ask for steps to achieve goals or multiple goals? -R

# data[].attributes.body
I used android studio and I tried to modify the database app to also allow the user to create a goal (like they would a post)

# data[].attributes.body
NICE! Any issues with getting data to post?

# data[].attributes.body
I just did an app that asks the user their name and their favorite food in Android Studio.

# data[].attributes.body
for x in 0...5 { myHand[x] = deckofCards[x] }

# data[].attributes.body
Answer from peers:

# data[].attributes.body
lol no worries at all

# data[].attributes.body
ooh yeh. je suis desole

# data[].attributes.body
5 because of the number of dots but they were so small its hard to see :)

# data[].attributes.body
4

# data[].attributes.body
x starts at 0, what number does it end at?

# data[].attributes.body
x starts as itself and ends as decor cards

# data[].attributes.body
x starts at what value and ends at what value?

# data[].attributes.body
9. How can we use a variable from the for loop to help us change all the values in the array? *What values do the variable from the below for loop represent and how can that help us with arrays?

for x in 0...5

{

}

# data[].attributes.body
YESSSSSS!!!!!!!!!!!!!!!!!!!!!!!

# data[].attributes.body
myHand[0] = deckOfCards[0]

# data[].attributes.body
myHand[0]= dejckofcards[0]

# data[].attributes.body
8.Change the first value of the array named myHand by (setting it equal to) referencing  first position in the array named deckofCards

# data[].attributes.body
fantastic

# data[].attributes.body
deckOfCards[0]

# data[].attributes.body
7. Type the code to reference the first position in the array named deckofCards

# data[].attributes.body
great

# data[].attributes.body
myHand[0] = x

# data[].attributes.body
6. Change the first value of the array named myHand by referencing  the variable x you created

# data[].attributes.body
myHand[0] = x

# data[].attributes.body
perfect!

# data[].attributes.body
var x = "something new"

# data[].attributes.body
5. Create a String variable named x and give it a value of "something new

# data[].attributes.body
Yes!!!!

# data[].attributes.body
print myHand[1]

# data[].attributes.body
my hand[1]

# data[].attributes.body
How do you "reference" the second position in the array myHand?

Hint: you would type myHand[0] to reference the first value in the array

# data[].attributes.body
0

# data[].attributes.body
0

# data[].attributes.body
Yes

# data[].attributes.body
myHand[0] = "Something new"

# data[].attributes.body
3. Change the first value of the array named myHand to "Something new"

# data[].attributes.body
var deckOfCards = ["wee", "boop", "haha", "lol", "boo"]

# data[].attributes.body
var deckofcards = ["sillysentence one","sillysentence 2","sillysentence 3","sillysentence 4","sillysentence 5"]

# data[].attributes.body
var deckOfCards = ["yeet", "yoo", "boo","oof","yay'']

# data[].attributes.body
var myHand = ["space holder one", "space holder two"]

# data[].attributes.body
2. Create an array named: deckOfCards and contains 5 silly sentences

# data[].attributes.body
var myHand = ["space holder one", "space holder 2"]

# data[].attributes.body
var myHand = ["space holder 1", "space holder 2"]

# data[].attributes.body
1. Create 1 array named: myHand and contains "space Holder 1" and "space Holder 2"

# data[].attributes.body
i want to live to 100

# data[].attributes.body
any thoughts on what you want to use your array for

# data[].attributes.body
im going to continue w my cs fair but change it up a little and make it simpler

# data[].attributes.body
anyone doing cs fair

# data[].attributes.body
Anyone doing option one goal/dream?

# data[].attributes.body
Correct! does anyone know another way to create an array

# data[].attributes.body
int[] myArray = new int[4];

# data[].attributes.body
1. Create an array with 4 items that stores int

# data[].attributes.body
Yes!

# data[].attributes.body
oh 3

# data[].attributes.body
What do array positions start at 1 or 0?

# data[].attributes.body
4

# data[].attributes.body
2. If this is an array, int[] myArray = new int[4]; , what number goes in the ? to indicate it is the last thing stored in the array?

myArray[?] = 100;

# data[].attributes.body
Thats tough

# data[].attributes.body
Sleep goals, I don't know about you but I have been a night owl and paying for it in the morning!

# data[].attributes.body
Yes that is me!

# data[].attributes.body
I am using arrays to represent different sleep schedules

# data[].attributes.body
Is that Jake wanting to be a baseball player?

# data[].attributes.body
I am doing the dreams project in pencil code. My dream is to become a professional baseball player.

# data[].attributes.body
no

# data[].attributes.body
does anyone know any other way to create an array?

# data[].attributes.body
Perfect

# data[].attributes.body
4.)
int[] myArray = new int[4];

myArray[0] = 7;
myArray[1] = 5;
myArray[2] = 4;
myArray[3] = 2;

# data[].attributes.body
Create an array with 4 items that stores int

# data[].attributes.body
3 goes in the ?
myArray[3] = 100;
To show that it is the 4th and last placement

# data[].attributes.body
Yes!

# data[].attributes.body
2.) myArray[3] = 100; <-- answer for number 2

# data[].attributes.body
2. If this is an array, int[] myArray = new int[4]; , what number goes in the ? to indicate it is the last thing stored in the array?

myArray[?] = 100;

# data[].attributes.body
The Responses below for CP1 Period 5

# data[].attributes.body
THank you

# data[].attributes.body
YESSSS

# data[].attributes.body
for x in (0...2){

if updateFavShows[x] == "old show 2"{

updateFavShows[x] = "my new show"

}

# data[].attributes.body
5.Now that we found a value, we can change the value!

1. Create a for loop that runs 3 times.

This loop will also use if statements to find “old show 2” in the array updateFavShows, but instead of printing out “you found old show 2”  change the value of “old show 2” to  “my new show”.