You are on page 1of 4

QUEZON CITY UNIVERSITY

COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

CC101 - INTRODUCTION TO COMPUTING


SEATWORK NO. 1 - SET A
NAME: Ronnie Barbon SCORE PERCENTAGE

STUDENT NO: 21-1952


YEAR/SECTION: 1st year
DATE: Sept 12, 2021

INSTRUCTIONS: Draw a flowchart based on the given machine problem below. Named your file as
Lastname_Seatwork_1.

1. Draw a flowchart that display your age years from now.

START

Current year= cy
Birth year = by
Age = A

Enter your
current year
and birth
year

A= By - Cy
A = 2003 - 2001

Age = 18

END
QUEZON CITY UNIVERSITY
COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

2. Draw a flowchart that will add two numbers and display the output.

START

Number 1 and
Number 2

Sum = Number 1 +
Number 2

Display
sum

END
QUEZON CITY UNIVERSITY
COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

3. Draw a flowchart that accept user input and determine the gender of the user. If the user input ‘M’
print the word ‘Male’, then if the user input ‘F’ print the word ‘Female’ otherwise print ‘Invalid’.

START

INPUT
Male and Female and
otherwise invalid

Male = M
Female = F
Otherwise = Invalid

Otherwise If F
If M

Print Print
Print Male Invalid Female

END
QUEZON CITY UNIVERSITY
COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

You might also like