Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
61 views2 pages

Plate 3 Flowchart Loops QUIZ 3

This document provides 3 problems for each of the 3 loop structures in pseudocode - while, do-while, and for loops. The problems cover tasks like reading student data and calculating averages, converting temperatures, computing sums of ranges of numbers, and printing output a set number of times. Pseudocode examples are provided for basic looping tasks common in introductory programming lessons.

Uploaded by

John
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Plate 3 Flowchart Loops QUIZ 3

This document provides 3 problems for each of the 3 loop structures in pseudocode - while, do-while, and for loops. The problems cover tasks like reading student data and calculating averages, converting temperatures, computing sums of ranges of numbers, and printing output a set number of times. Pseudocode examples are provided for basic looping tasks common in introductory programming lessons.

Uploaded by

John
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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