WITH CORRECT SOLUTIONS!!
Characteristics of a command correct answers *No spaces in commands
*Need to match exact capitalization
*Every command ends in ( ) ;
Function correct answers allows us to break down our program into smaller parts, and makes
the program easier to understand.
Rules for defining a function correct answers *Name should start with a letter, and cannot
have any spaces
*The name should describe what this function does
*The code in the function goes between the { and the } character, and this is called the
"function body."
Start function correct answers All of our programs start with
We use functions to correct answers *break down our program into smaller parts
*avoid repeated code
*make our program more readable
Comments correct answers Notes that you leave in your code so others can know what your
code is doing
For loops correct answers repeats a section of code a fixed number of times
Conditions correct answers is a function that returns a true/false answer
If statements correct answers a programming conditional statement that, if proved true,
performs a function or displays information.
if-else statements correct answers it executes a block of code if is true. If it's false, another
block of code can be executed.
While loops correct answers allows us to repeat a section of code as long as some condition is
true.
Computer correct answers is a computing machine that performs calculations according to
precise instructions.
Uses for computers correct answers *To keep counts
*Marketplace
*Calculate astronomical positions
*Solves math problems
*Military and business uses
Hardware correct answers Physical components