Chapter 2 Essay

309 Words2 Pages
Chapter 2 1. What does a professional programmer usually do first to gain an understanding of a problem? Answer: The programmer gains understanding by working directly with a customer. 2. What is pseudocode? Answer: Pseudocode is fake codes used to write before the programmer writes the actual program. 3. Computer programs typically perform what three steps? Answer: Input is received, then a process is performed on the input, and output is produced 4. What does the term “user-friendly” mean? Answer: User friendly means that everyone from the non-experience to the moderate experience user can use a specific program easily. Algorithm workbench review questions 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. Answer: Display “Enter your height” Display “Input height” “Display “Your height is”, “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. Answer: Display “Enter your favorite color” Display “Input Favorite color” Display “Your favorite color is” “color” Programming Exercise Questions 1. Design a program that displays the following information * Your Name * Your address, with city, state, and zip code * Your telephone number * Your college major Answer: Display “Marc Ilarraza” Display “859 N 32nd St” Display “Camden, NJ 08105” Display “888-888-8888 Display “Computer Networking” 4 A customer in a store is purchasing five items. Design a program that asks for the price of each item, and then display the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent. Answer: Declare Double amount, total Declare TAX = .06 Display "Enter the price:” Input amount total = total +

More about Chapter 2 Essay

Open Document