Short Answers
1. The first thing a professional programmer will usually do to gain the understanding of a problem is to work directly with, and interview the customer.
2. An informal language that has no syntax rules, and is not meant to be compiled or
executed
3. Computer programs usually follow the following three steps:
1) Input is received.
2) Some process is performed on the input.
3) Output is produced.
4. Commonly known in the software business to describe programs that are easy to use.
Algorithm Workbench
1. Dim height as double = 0 Console.Writeline(“ Enter your height.”) Height = console.readline()
2.
Dim color as String = “NO VALUE”
Console.Writeline(“What is your favorite color?”)
Color = Console.Readline()
Programming Exercises
1. Personal Information
// declare variables
Name
Address
City
State
Zip
Phonenumber
Major
//prompt user for information and store as variables
Display “enter your name”
Input Name
Display “what is your address”
Input Address
Display “what city”
Input City
Display “what state”
Input State
Display ‘what is the zip code”
Input Zip
Display “What is your phone number”
Input Phonenumber
Display “What is your major”
Input Major
//Display the information back to user
Display name
Display address
Display city
Display state
Display zip
Display phonenumber
Display major
4. Total Purchase //declare variables
Itemone
Itemtwo
Itemthree
Itemfour
Itemfive
Subtotal
Salestax
Totalcost
//user input of item information
Display “what is the cost of item 1”
Input itemone
Display what is the cost of item 2
Input itemtwo
Display what is the cost of item 3
Input itemthree
Display what is the cost of item 4
Input itemfour
Display what is the cost of item 5
Input itemfive
//calculate the subtotal, salestax and