Professional Documents
Culture Documents
Activity Section
Conditional2 Activity 1
a. Problem
Write a C program that will categorize the grade of a student in
alphabetical form (90-100: A; 80-89: B; 70-79: C; 60-69: D;
Below 60: F).
b. Algorithm
-Input: Enter grade (g)
-Process: Categorize grade (g)
-Output: Display grade category
c. Flowchart
Figure 1. Conditional2 Activity 1 Flowchart
The figure above indicates the process the program must flow.
The program first asks for the grade. This value should be from 0 to 100.
The program will then test out whether the value falls into which
alphabetical category. After the program determines which of the
following categories is the grade considered into, the program stops.
d. Source Code
e. Program Output
Conditional2 Activity 2
a. Problem
Write a C program that determines the equivalent color assigned
to the letter.
b. Algorithm
-Input: Enter letter (let)
-Process: Assign color to letter (let)
-Output: Display color of chosen letter (let)
c. Flowchart
d. Source Code
e. Program Output
Conditional2 Activity 3
a. Problem
Make a C program that will determine the year level of the student.
b. Algorithm
-Input: Enter year level (n)
-Process: Assign name to year level (n)
-Output: Display name of year level (n)
c. Flowchart
e. Program Output
III. Supplementary Section
Conditional2 Supplementary 1
a. Supplementary Worded Problem
Write a C program that will take in the order of the user for pizza
given the flavor of the pizza, size of the pizza, and the age of the
user for discount purposes.