Introduction To Programming
10-152-310

Learning Plan 2 : Variables and Data Types

Student

  • Name:
  • Section:
  • Email:

Problem Statement

Write a program that asks a user for 2 numbers. Add the numbers together and output the 2 numbers and the sum.

The Nouns

List the important nouns from the problem statement in the following pre tag.

	
      

The Verbs

List the important verbs in the following pre tag.

	
      

The List of Input Variable

Write a list of the input variables in the following pre tag.

	
      

The List of Output Variables

Write a list of the output variables in the following pre tag.

	
      

The Process Checklist

Write a list of the processing steps in the following pre tag. You will need to write the input and the output steps as well as the calculations.

	
      

Write the JavaScript!

  • After the line: YOUR CODE STARTS AFTER THIS LINE:
  • Based on the input and output variables, and the process checklist, code this program. (Don't forget to convert the input data to numbers with the Number() function.)

Your Output:

		  
      

Here is the assignment that goes with this lab.