0% found this document useful (0 votes)
349 views

Programming Exercises

The document provides 13 flowcharting exercises involving computing values based on formulas and conditional logic: 1) Compute a student's midterm grade from exam scores. 2) Compute the sum and average of 3 numbers. 3) Compute the area of a rectangle from length and width. 4) Convert inches to feet. 5) Convert kilowatts to watts. 6) Compute the area of a circle from the radius. 7) Convert square meters to hectares. 8) Compute an amount by multiplying unit price and quantity. 9) Perform conditional logic on two numbers X and Y. 10) Determine the largest of 3 numbers. 11) Display 3 numbers in ascending
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)
349 views

Programming Exercises

The document provides 13 flowcharting exercises involving computing values based on formulas and conditional logic: 1) Compute a student's midterm grade from exam scores. 2) Compute the sum and average of 3 numbers. 3) Compute the area of a rectangle from length and width. 4) Convert inches to feet. 5) Convert kilowatts to watts. 6) Compute the area of a circle from the radius. 7) Convert square meters to hectares. 8) Compute an amount by multiplying unit price and quantity. 9) Perform conditional logic on two numbers X and Y. 10) Determine the largest of 3 numbers. 11) Display 3 numbers in ascending
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 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy