smallasfen.blogg.se

Transmac 11.9 key reddit
Transmac 11.9 key reddit







Var amount = readInt(“How many would like?”) Println(“Hi ” + name + ” you want to meet ” + age + ” droids and ” + wookies + ” Wookie.”) Var wookies = readInt(“How many wookies? “) Var age = readInt(“How many driods do you want to met?”) It is what is sent back from calling a function. What is the return value from a function?Īns: A return value from a function is an output of a function. We call a function with parameters by saying its name with the parameters in the () separated by commas if there are multiple. We can call a function by saying its name followed by (). How do I call a function? How do I call a function with parameters?

#Transmac 11.9 key reddit code

What are the parameters of a function?Īns: The parameters to a function are the inputs to the function which is being passed into the function.Īns: The scope of a variable is the area in your code in which the variable is known or usable. We use functions because they make the program more readable & understandable, they break your program into smaller, more manageable pieces, & they allow for repeated codes.Īns: A local variable is a variable that only exists inside of a function. What is a function and why should I use them?Īns: A function is defined for a specific task that needs to be done. Why do we want to use variables in our program instead of hardcoding values?Īns: This is a convention we will follow so that our program will work in multiple situations & not just a particular situation.Īns: A global variable is a variable that is known everywhere throughout your code. How do I keep a running total of something?Īns: The randomizer will generate a random int, float, boolean, or color.Īns: These are similar to Karel while loops. = 18) the code in the curly brackets after this will be executed a fixed number of times.Īns: A counter is a variable that gets incremented or decremented each pass through repeated code. The getWidth() function gives us the width of the canvas and the getHeight() function gives us the height of the canvas.Īns: A boolean is a variable that has a value of true or false. The upper left-hand corner of the canvas is always 0,0.

transmac 11.9 key reddit

17%5 = 2 (meaning when we divide 17 by 5 we get the remainder of 2).Īns: Canvas – getWidth(), getHeight().

transmac 11.9 key reddit

This can be accomplished by i++ or i = i or i = i – 1 Īns: Modulus is the remainder function, represented by % (the percent sign). > Boolean – has a value of true or falseĪns: Valid variable’s names start with a letter, the underscore, or a dollar sign.Īns: This is a convention we follow where the first word in a variable name is all lower case and any subsequent words are capitalized (ex: numApples).Īns: A convention is something we will follow even though our program would work without following it.Īns: A prompt is a question for the user.Īns: Output is what is displayed on the screen.Īns: Increment means adding one and decrement means subtracting one. > Click Here For CodeHS Karel Answers Number – integers Just click on the below button for getting answers:

transmac 11.9 key reddit

If any important topics are missing then please let us know through our comment box at the end of this session.Īnother important topic especially designed for beginners.

  • CodeHS Javascript and Graphics Quiz ĬodeHS Answers Key – Quiz Solutions To All UnitsĪs assured, we will be covering all possible quiz answer keys for CodeHS below.
  • CodeHS Answers Key – Quiz Solutions To All Units.






  • Transmac 11.9 key reddit