Nt1420 Unit 2 Assignment

341 Words2 Pages
Short Answers 1-4: 1. What does a professional programmer usually do first to gain an understanding of a problem? A professional programmer will usually work directly with the customer to first gain an understanding of a problem. 2. What is pseudocode? Pseudocode is ‘fake code’. 3. Computer programs typically perform what three steps? Three steps that computer programs typically perform are: * Input is received. * Process is performed on the input. * Output is produced. 4. What does the term “user-friendly” mean? “User-friendly” describes programs that are easy to use. Algorithm Workbench 1&2: 1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height. Get user height, set user height = height. Display as: “What is your height”. Input user’s height. 2. Design an algorithm that prompts the user to enter his or her favorite color and stores the user’s input in a variable named color. Set as favorite color = color. Display as: “what is your favorite color”. Input is favorite color. Programming Exercises 1&4: 1. Personal Information – Design a program that displays the following information: * Your name * Your address, with city, state , and ZIP * Your telephone number * Your college major Input “Your Name” Input “Your address” + “City” + “State” + “ZIP” Input “Your telephone number” Input “Your college major” Display “Your name” Display “Your address” + “City” + “State” + “ZIP” Display “Your telephone number” Display “Your college major” 4. Total Purchase A customer in a store is purchasing five items. Design a program that asks for the price f each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent. Sub subTotals() Declare Integer i

More about Nt1420 Unit 2 Assignment

Open Document