DSAA Week5 Algorithms
DSAA Week5 Algorithms
Algorithms
Prepared by:
Ms. Angilyn J. Leoncio
Algorithm
Definition
START START
System Flowchart
Program Flowchart
END END
Basic Flowcharting Symbols
SYMBOL NAME DESCRIPTION
The preparation or
INITIALIZATION initialization of memory space
for data processing.
Manipulation of
data(assignments and
PROCESS mathematical computations)
Basic Flowcharting Symbols
SYMBOL NAME DESCRIPTION
Decision Symbol
Input and Output
Magnetic Disk
Stored Data Symbol (Database)
1. Write a program that calculates the sum of two input numbers and display the result.
2. Write a program to calculate the area of a circle and display the result. Use the formula: A=πr 2 where Pi is
approximately equal to 3.1416.
3. Write a program that computes the average of three input quizzes, and then display the result.
4. Write a program that converts the input Fahrenheit degree into its Celsius degree equivalent. Use the formula: C=
(5/9)*F-32.
5. Create a program to compute the volume of a sphere. Use the formula: V= (4/3)* πr 3 where is pi equal to 3.1416
approximately. The r3 is the radius. Display result.
6. Write a program that converts the input Celsius degree into its equivalent Fahrenheit degree. Use the formula: F=
(9/5) * C+32.
More questions?
Messenger: fb/angie.leoncio.5