These are samples of the kinds of apps you'll be able to build by the end of this unit. As you go through them, write down at least two examples where the app seems to be keeping track of a piece of information or using it to make a decision.
In one app. it is keeping track of clicks and using the count of the clicks to change the form of the rock.
How does a baggy represent a variable?
The baggy represents a variable by storing one item: a value on a sticky note placed in a named baggy. The value in the baggy can be changed at any time, just like a variable's value can change.
Let's review. What can be stored in a variable? Why is using a meaningful name for the variable important?
Variables can store anything that is important to hold or to be called back upon. A meaningful variable is important for the coder to remember what the variable entails.
Image of Debugged Code
Lesson 2 Activity Guide incase link doesent work : https://docs.google.com/document/d/1PUv697UaFZJFx81qZDhCJre2UejNx5yqENnKnmIwAnQ/edit?usp=sharing
What aspects of working with variables do you feel like clicked today? What do you still feel like you have trouble with?
I understood how they worked and how they stored values. I am still confused on the ways to impelement them in onEvent commands.
Lesson 3 Activity guide incase link doesent work : https://docs.google.com/document/d/1AI3TlARukPLZ3MN9VMj7O8FYVARbMwqvzZSQaBoyN6k/edit?usp=sharing
What does this app do? It allows you to make comments and like and dislike a post
What are the inputs? Like and dislike button, comment writing text space, and comment button
What are the outputs?
The like count and the comment output
What's one piece of information that might be stored in a variable?
The number of likes
Image of Code of App I made below :
Link incase it doesent work
1. Imagine you want to make a decision about what to wear to an event. Name two pieces of information you'd want. How would you use them in your decision?
I would want to know what the event is about and what other people would wear. I would use that to determine what I would wear.
1.A water park will let a visitor on a ride if they are 48 or more inches tall OR they are 14 years old or older. Make a flowchart for this decision. Make sure to use comparison operators (<, >, ==, etc. ) and logical operators (&&, ||, !) when you write your Boolean expression. Answer Below in the image
2.What is the difference between an if-statement, an if-else statement, and an if-else-if statement? How are they similar?
They are basically the same thing but get more complicated as it goes on. An if-statement is causes something to happen if another happens. The else adds on to another choice which will cause another thing to happen. The else if is a continuation of the if statement and is a more choice
Image of Debugged COde
1.What aspects of working with conditionals do you feel like clicked today? What do you still feel like you have trouble with?
I think I mostly understand conditionals except some vocabulary terms.
Image of Mueseum Ticket Generator Coded
What variables would you need to program this app?
You would need one for the price of the ticket depending on the day and discount prices.
1.In Style 1, what line of the song do you sing after line 09? What about in Style 2?
So wake me up when it's all over in
Sing Chorus (the lyrics are below)
2.Style 2 uses fewer lines to write. Are there fewer lyrics to sing?
No, the code is just simpler
3.What are the benefits of writing a song in Style 2?
It's easier to debug and analyze
4.On what line(s) is the updateScreen functions being declared?
6
5.On what lines is the updateScreen function being called?
12
6.How does the updateScreen function make the program easier to write and understand?
It makes it easier to read and understand the code since there is less of it.
7.How does the newly added updateScreen function help keep your code better organized or reduce the amount of repeated code?
It kept it shorter and easier to understand.
8.What did you learn?
Functions can be used to shorten and make code more simplistic and easier to read.
9/What are you uncertain about?
Nothing
What aspects of working with functions clicked today? How to declare them and how they are used
2. What do you still feel like you have trouble with ? I do not have trouble with anything