Plate 3 Flowchart Loops QUIZ 3
Plate 3 Flowchart Loops QUIZ 3
Plate 3 Flowchart Loops QUIZ 3
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.
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.
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.