Вы находитесь на странице: 1из 5

NAME: ___________________________________________

DATE: ____________________________________________

ACTIVITY NO. ______________________________________

Objectives(s)

At the end of the activity, students can

1. Analyze a problem
2. Complete an IPO chart
3. Plan an algorithm using pseudocode and flowcharts
4. Desk-check an algorithm

INSTRUCTION: ​Give what is asked from the problem. Write your answer CLEARLY and NEATLY.

PROBLEM 1:

Wilma Peterson is paid by the hour. She wants a program that calculates her weekly gross pay. For this exercise, you
do not need to worry about overtime pay, as Wilma never works more than 40 hours in a week. Complete an IPO
chart for this problem. Desk-check the algorithm using $10 as the hourly pay and 35 as the number of hours worked.
Then desk-check it using $15 as the hourly pay and 25 as the number of hours worked.

IPO CHART
INPUT PROCESSING OUTPUT
DESK-CHECKING

FLOWCHART:
PROBLEM 2:

The accountant at Typing Haven wants a program that will help her prepare a customer’s bill. She will enter the
number of typed envelopes and the number of typed pages, as well as the charge per typed envelope and the
charge per typed page. The program should calculate and display the amount due for the envelopes, the amount
due for the pages, and the total amount due. Complete an IPO chart for this problem. Desk-check the algorithm
using 50, 100, $.10, and $.25 as the number of typed envelopes, the number of typed pages, the charge per typed
envelope, and the charge per typed page. Then desk-check it using your own set of data.

IPO CHART
INPUT PROCESSING OUTPUT

DESK-CHECKING
FLOWCHART

PROBLEM 3:

The Paper Tree store wants a program that calculates and displays the number of single rolls of wallpaper needed to
cover a room. The salesclerk will provide the room’s length, width, and ceiling height, in feet. He or she also will
provide the number of square feet a single roll will cover. Complete an IPO chart for this problem. Desk-check the
algorithm using 10, 12, 8, and 30 as the room’s length, width, ceiling height, and number of square feet a single roll
will cover. Then desk check it using your own set of data.

IPO CHART
INPUT PROCESSING OUTPUT
DESK-CHECKING

FLOWCHART

Вам также может понравиться