0% found this document useful (0 votes)
2 views

Assignment - Flowchart

The document outlines a Computer Science assignment focused on creating flowcharts for various algorithms, including user login, area calculation of a rectangle, profit or loss calculation, triangle classification, student grading feedback, temperature control in a shopping mall, and school admission procedures. Each task requires the student to draw a flowchart based on provided criteria and conditions. Additionally, there is a section for analyzing a flowchart's output based on specific input data.

Uploaded by

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

Assignment - Flowchart

The document outlines a Computer Science assignment focused on creating flowcharts for various algorithms, including user login, area calculation of a rectangle, profit or loss calculation, triangle classification, student grading feedback, temperature control in a shopping mall, and school admission procedures. Each task requires the student to draw a flowchart based on provided criteria and conditions. Additionally, there is a section for analyzing a flowchart's output based on specific input data.

Uploaded by

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

CEMPAKA INTERNATIONAL SCHOOL, DAMANSARA HEIGHTS

Computer Science Assignment – Flowchart

Assignment – 7 Flowchart

1. To login to a computer, a user needs to type in a user id followed by a password


which should match up. For this only three attempts are allowed.
Complete the flowchart using the items from the list below.

2. Draw a flowchart of an algorithm to calculate the area of a rectangle.

3. Draw a flowchart to calculate the profit or loss.

4. Lengths of three sides of a triangle a, b, c are given as input. Draw a flowchart to find
if the triangle is isosceles, equilateral, or scalene.
Hint: In an equilateral triangle three sides are equal.
In an isosceles triangle two sides are equal.
In a scalene triangle three sides are not equal.
CEMPAKA INTERNATIONAL SCHOOL, DAMANSARA HEIGHTS
Computer Science Assignment – Flowchart

5. A teacher is marking his students’ test papers on a computer.


If they achieve over 50 per cent, he would like the message ‘Well done!’ displayed.
If they achieve over 90 per cent, they should also receive a second message stating
‘This is an excellent result.’
If they score 50 per cent or lower, the message will be ‘You must try harder next
time.’
Draw a flowchart of an algorithm that would output these messages.

6. Study the flowchart carefully.

Complete the following table showing the expected output from the flowchart for the
three sets of input data.

Input X Output S
48
9170
-800
CEMPAKA INTERNATIONAL SCHOOL, DAMANSARA HEIGHTS
Computer Science Assignment – Flowchart

7. Draw a flowchart of an algorithm that would be used to control the temperature in a


shopping mall and maintain a temperature of 20 °C.
1. Check the temperature.
2. If the temperature is greater than 20 °C, then turn off the heaters and open the
ventilators.
3. If the temperature is less than 20 °C, then turn on the heaters and close the
ventilators.
4. Go back to instruction 1

8. The following empty flowchart gives the steps to be followed while seeking
admission to new school. The phrases to be filled in the boxes are also given.
Complete the flowchart by filling in the number of the corresponding phrase, inside
each box.
For example: the number corresponding to the first box in the flowchart is 7.
1. Search for a school
2. Prepare for the admission test and write the test.
3. Did you pass the exam?
4. Submit necessary documents and get admission.
5. End
6. Are seats available?
7. Start
8. Is there an admission test?
CEMPAKA INTERNATIONAL SCHOOL, DAMANSARA HEIGHTS
Computer Science Assignment – Flowchart

You might also like