Introduction To Programming
10-152-310

Learning Plan 2 : Variables and Data Types

Student

  • Name:
  • Section:
  • Email:

Part 1

  • Open this file in your browser and Microsoft Visual Studio
  • Add your name, section, and email
  • After the line: // PART 1: YOUR CODE STARTS AFTER THIS LINE:
    • Create a variable that will hold a string.
    • Prompt a user to enter something and put the entered value into the variable.
    • Write the variable to the page with some descriptive text on a separate above the enter text. Add quotation marks around the display of the entered text.
  • Sample output:
    The text you entered was:
    "Here is my entry!"

Your Part 1 Output:

			
        

Part 2

  • Open this file in your browser and Microsoft Visual Studio
  • After the line: // PART 2: YOUR CODE STARTS AFTER THIS LINE:
    • Create two variables that will hold text.
    • Prompt the user to enter some text twice. Put the entered values into the two text variables.
    • Write some descriptive text to the page.
    • Write the contents of the first variable to the page surrounded with quotes.
    • Write a space, the word "and", then another space.
    • Write the contents of the second variable to the page surrounded with quotes.
  • Sample output:
    Your entered text was: "This" and "That"

Your Part 2 Output:

			
        

Part 3

  • Open this file in your browser and Microsoft Visual Studio
  • After the line: // PART 3: YOUR CODE STARTS AFTER THIS LINE:
    • Create a program that will play a mad lib game with your user.
    • Look at the sample output. The words in ALL CAPS will be entered by the user. Create variables to hold the four entered strings.
    • Ask the user to enter an adjective, a location, a first name, and a color. Put the entered data into the variables.
    • Generate the following output on three separate lines. Don't make your output all caps, those are there just to show you which words to get from the user.
  • Sample output:
    Last night I visited the PRETTIEST restaurant I have ever been to.
    It was located right in the middle of an ISLAND just outside of town. 
    The name of the place, "DAVE's," was lit up with big GREEN lights.

Your Part 3 Output: