Question 1: Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results. (2%)
Question 2: Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results .(2%)
Question 3: Draw a flowchart for a program that produces a monthly bill for a cellphone customer. Try to think of at least 10 separate modules that might be included. For example, one module might calculate the charge for daytime phone minutes used. (2%)
Question 4: Draw a structured flowchart or write pseudocode that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number. Pick a number and have a fellow student try to guess it by following your instructions. (2%)
Question 5: Draw a structured flowchart or write structured pseudocode describing how to get from your home to your school. Include at least two decisions and two loops. (3%)
Question 6: Draw a structured flowchart or write structured pseudocode describing how to decide what college to attend. Include at least two decisions and two loops. (3%)
Question 7: Design a flowchart or pseudocode for a program that accepts two numbers from a user and displays one of the following messages: First is larger, Second is larger, Numbers are equal. (2%)
Question 8: Cecilia’s Boutique wants several lists of salesperson data. Design a flowchart or pseudocode for the following:
A program that accepts one salesperson’s ID number, number of items sold in the last month, and total value of the items and displays data message only if the salesperson is a high performer-defined as a person who sells more than 200 items in the month. (2%)
A program that accepts the salesperson’s data and displays a message only of the salesperson is a high performer-defined as a person who sells more than 200 items worth at least $1,000 in the month. (2%)
A program that accepts salesperson data continuously until a sentinel value is entered and displays a list of the ID numbers of those who sell more than 100 items in the month. (2%)
A program that accepts salesperson data continuously until a sentinel value is entered and displays a list of salespeople who sold between 50 and 100 items in the month. (2%)
Question 9: Design the logic for a program that outputs numbers in reverse order from 10 down to 0. (2%)
Question 10: Design the logic for a program that allows a user to enter a number. Display the sum of every number from 1 through the entered number. (2%)
Question 11: Design the logic for a program that allows a user to continuously enter numbers until the user enters 0. Display the sum of the numbers entered. (2%)