Professional Documents
Culture Documents
INSTRUCTIONS: Draw a flowchart based on the given machine problem below. Named your file as
Lastname_Seatwork_1.
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