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

Week 2 - Pseudocode and Flowchart - 1

Uploaded by

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

Week 2 - Pseudocode and Flowchart - 1

Uploaded by

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

Week 2 – Pseudocode and flowchart

1. Write a pseudocode to receive an integer from the user,


add 5 to it, double it, subtract 7 from it, and display the
final number on the screen.
Start
Input num
Num1 = num + 5
Num1 = num * 2
Num1 = num - 7
Display Num1
End

2. Draw a flowchart to calculate area and circumference of


circle.

Area = π*r2
Start Get radius Circumference = 2πr

Print Area
Print End
Circumferenc
e
3. Write a pseudocode and draw a flowchart to calculate
and print the average of three numbers: 20, 10, and 2.
Start
Input num1
Num1 = 20
Num2 = 10
Num3 = 2
Sum = Num1 + Num2 + Num3
Average = Sum / 3
Display Average
End

You might also like