You are on page 1of 2

FLOWCHARTING AND PSUEDOCODING

Plate 1 – 3 Loop – While


PROBLEM #1
Write a program that will read 10 student numbers (studnum) and
individual scores (score) for a particular examination. Also, determine
their average score (ave) and print it out.

PROBLEM #2
Given a set of 5 numbers that includes both positive and negative
values. Write a program that read these numbers (num) one at a time
and print the number of positive values including zero (npos) and the
number of negative values (nneg) found in the set.

PROBLEM #3
Write a program that prints “…CORRECT…” if the user’s guess is
equal to the magic number “123”, but if the user’s guess is less than the
magic number print “…TOO LOW…” and if the user’s guess is greater
than the magic number, print “…TOO HIGH…”. The program repeats it
steps until the user input the magic number.

Plate 1 – 3 Loop – Do While


PROBLEM #1
Write a program that computes and display each gross pay
(gross_pay) of 10 employees. Gross pay is computed by having the
product of number of days worked (no_of_days) and rate per day (rate).

PROBLEM #2
Write a program that converts Fahrenheit temperature to Celsius
temperature where 100 is the initial value down to 0. Where:

C = 5 F - 32
9

PROBLEM #3
Write a program that computes the sum (sum) of all numbers from
first number (num1) to second number (num2). The second number
should be greater than the first number to get the sum. Otherwise, let
the user enter two appropriate numbers again.

Plate 1 – 3 Loop - For


PROBLEM #1
Write a program that prints your name 5 times.

PROBLEM #2
Write a program that will read 10 student numbers (studnum) and
individual scores (score) for a particular examination. Also, determine
their average score (ave) and print it out.

PROBLEM #3
Given a set of 5 numbers that includes both positive and negative
values. Write a program that read these numbers (num) one at a time
and print the number of positive values including zero (npos) and the
number of negative values (nneg) found in the set.

You might also like