Vous êtes sur la page 1sur 2

FLOWCHARTING EXERCISES

1. Draw a flowchart that will compute for the midterm grade of a student. The midterm
grade is equal to one-third of the minor A exam and two-thirds of the midterm exam. Print
the midterm grade.

2 .Construct a flowchart that will compute and print the sum and average of 3 numbers.

3. Draw a flowchart that will compute and display the Area of a rectangle using the formula:
Area = Length x width.

4. Construct a flowchart that will convert and display an inputted number in inches (in.) to
its equivalent number in feet (ft). Hint: 1ft = 12in.

5. Draw a flowchart that accepts a number in kilowatts then display its equivalent number
in watts. Hint: 1 watt = 0.0001 kilowatt.

6. Draw a flowchart that accepts a value for radius (R) and compute the corresponding area
of a circle. Print the value of the radius and the computed area.
Use the formula Area = Pi x R 2

7. Construct a flowchart that accepts a number in square meter (m) and display its
equivalent number in hectares (has). Hint: 1000 m = 1 ha.

8. Read and records in a computer. The first record will contain unit price and the second
record will contain quantity. Draw a flowchart that will compute and display the amount by
multiplying unit price and quantity.

9. Given two numbers X and Y, Draw a flowchart to determine the difference between X and
Y. if X Y is negative, compute R = X + Y; if X Y is zero, compute R = 2X + 2Y; and if X Y is
positive, compute R = X * Y. Print the values of X, Y, and R.

10. Draw a flowchart that will determine and display the largest number among 3 numbers
being inputted.

11. Draw a flowchart that displays 3 inputted numbers in ascending order.

12. Construct a flowchart that asks for the amount purchased by the customer. If the
customer purchases more than 2,000 then a 5% discount is given. Display the net amount
to be paid by the customer.
13. Construct a flowchart to determine the equivalent grade of each student in a class as
follows:

A. Read in the students name, midterm grade, minor B, and final exam ratings.
B. Determine the final grade of the student by the formula: final grade = 0.30 of the
midterm grade = 0.10 of the minor B = 0.60 of the final exam.
C. Determine the equivalent grad e for the numerical value obtained by the following
grading marks:

98 100 = 4.00
95 97 = 3.75
92 94 = 3.50
89 - 91 = 3.25
86 88 = 3.00
83 - 85 = 2.75
80 82 = 2.50
77 79 = 2.25
74 76 = 2.00
71 73 = 1.75
68 70 = 1.5
64 67 = 1.25
60 63 = 1.00
below 60 = 0.00

Vous aimerez peut-être aussi