Introduction To Programming
10-152-310

Learning Plan 2 : Variables and Data Types

Student

  • Name:
  • Section:
  • Email:

Part 1

The Problem Statement

Write a program that asks a user for their name. Output a greeting for the user that has the string, "Hi, ", then the entered name, and then the string, ". How are you?".

  • Open this file in your browser and Microsoft Visual Studio
  • Add your name, section, and email
  • Let's tighten up the planning steps and reduce the typing.
  • In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.
    The List of Input Variables:
    
    The List of Output Variables:
    
    The Process Checklist:
        
  • Now code away!
  • After the line: // PART 1: YOUR CODE STARTS AFTER THIS LINE:
    • Write the JavaScript program based on the lists.

Your Part 1 Output:

			
        

Part 2

The Problem Statement

Write a program that asks a user for 3 numbers. Multiply the first number by the second number and divide the result by the third number. Display the three numbers, and the result of the calculation, on the page.

  • In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.
    The List of Input Variables:
    
    The List of Output Variables:
    
    The Process Checklist:
        
  • After the line: // PART 2: YOUR CODE STARTS AFTER THIS LINE:
    • Code this program in JavaScript

Your Part 2 Output: