Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
207 views

FlowChart Lecture in Programming

This document contains 5 problems describing programs or flowcharts to solve various conditional logic or grading problems. Problem 1 reads in an integer and outputs if it is even or odd along with the remainder. Problem 2 draws a flowchart to calculate bus fare rates based on passenger age and distance traveled. Problem 3 asks the user for their age and outputs if they are a kid, adolescent, or adult. Problem 4 creates a flowchart to calculate a student's grade based on exams and class standing and outputs a letter grade. Problem 5 creates a flowchart to calculate a student's grade point based on assignments, seatwork, quizzes, and exams.

Uploaded by

Denyiel
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
207 views

FlowChart Lecture in Programming

This document contains 5 problems describing programs or flowcharts to solve various conditional logic or grading problems. Problem 1 reads in an integer and outputs if it is even or odd along with the remainder. Problem 2 draws a flowchart to calculate bus fare rates based on passenger age and distance traveled. Problem 3 asks the user for their age and outputs if they are a kid, adolescent, or adult. Problem 4 creates a flowchart to calculate a student's grade based on exams and class standing and outputs a letter grade. Problem 5 creates a flowchart to calculate a student's grade point based on assignments, seatwork, quizzes, and exams.

Uploaded by

Denyiel
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

FLOWCHART

Decision/Conditional

Problem 1

Write a program that read in an integer


and outputs a statement telling whether
or not the integer is an even number . If
the integer is not an even number , the
program should also output the
remainder obtain when the number is
divided by 2.

Problem 2

Uzumaki Bus Co. operates using a


different fare rate. If a passenger is below
15 years old, the rate per kilometer
travelled is 6 pesos. If he/she is above 55
years old, the rate per kilometer is 6
pesos and 50 centavos. Otherwise the
rate for every kilometer is 7 pesos. Draw
a flowchart that will input the age and the
distance that a passenger will travel and
output the bus fare

Problem 3

Write a program that asks a user for his


or her age and then display a message
saying whether he/she is a kid (below
13), adolescent(13 to 20 yrs old), or
adult(above 20 years old).

Problem 4

Create a flowchart that will compute the for


the grade of students and print its equivalent
Letter Grade. The formula for computing the
grade is GRADE = 60% Exams + 40% Class
Standing. Exams is 50% Quizzes and 50%
Major Exam while the Class Standing is 25%
Attendance Grade and 75% Recitation.
Note: use Quizzes, Major Exam, Attendance
Grade and Recitation as input. A = 91-100, B
= 81-90, C= 75- 80, D = below 75

Problem 5

Create a flowchart that will compute for the grade of students and
print its equivalent Grade point. The formula for computing the
grade is GRADE = 10% Assign + 20% SeatWork +30% Quiz +
40% Exam. Note that there are 2 assignments, 2 seat work and 2
quizzes.

Equivalent Point Grade:

1.00 above 98 -100

1.25 above 95-98

1.50 above 92-95

1.75 above 89-92

2.00 above 86-89

2.25 above 83-86

2.50 above 80 -83

2.75 above 77-80

3.00 75-77

5.00 below 75

You might also like