User input is a cornerstone of any interactive program. In this lesson we learn how we can allow the user to input information into our programs. This will make our programs much more interactive and useful.

Objective

Students will be able to…
* Create programs that ask the user for input
* Store user input in variables and print it back to the user
* Choose the proper input function to use depending on the type of information needed

Activities

These are all the activities included in the lesson.

Activity

3.3.1 User Input

Video

3.3.2 User Input Quiz

Quiz PRINT QUIZPRO

3.3.3 Basic User Input

Example

3.3.4 Grocery Store

Exercise REVIEW FOR CLASS

Lesson: 3.4 Basic Math in JavaScript

Section:


Computers are excellent machines for performing mathematical operations. In this lesson we learn about the different mathematical operators we can use to perform mathematical computations, and we create useful programs that compute useful information for the user.

Objective

Students will be able to…
* Describe the different mathematical operators we can use in programs
* Create programs that use basic math to compute useful things
* Create programs that take in user input, do simple computations with the input, and produce useful output

Open the Google Doc for this class. In your own words at the TOP of the Doc, explain what you learned today and how it can help you write programs.

SANDBOX–create a new programs that uses at least one WHILE LOOP and IF ELSE statement.  Include at least 2 of your own functions. Show me.

Leave a Reply

Your email address will not be published. Required fields are marked *