0% found this document useful (0 votes)
53 views8 pages

Asmaa Waleed Alnabhan

The documents contain flowcharts and pseudocode for calculating various values. The flowcharts show the steps and logic, while the pseudocode describes the steps in more detail. The summaries calculate area and perimeter given dimensions, percentage salary increase, swapping variable values, converting time to hours/minutes/seconds, calculating the area of overlapping shapes, validating and transforming a 3-digit number, and calculating gravitational force given masses and distance.

Uploaded by

LOZ SAMA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views8 pages

Asmaa Waleed Alnabhan

The documents contain flowcharts and pseudocode for calculating various values. The flowcharts show the steps and logic, while the pseudocode describes the steps in more detail. The summaries calculate area and perimeter given dimensions, percentage salary increase, swapping variable values, converting time to hours/minutes/seconds, calculating the area of overlapping shapes, validating and transforming a 3-digit number, and calculating gravitational force given masses and distance.

Uploaded by

LOZ SAMA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

1

Start
FLOWCHART

Enter number
A, B
a

Calculate
Area = A * B

Calculate
Perimeter = 2A+2B

Print

Area & Perimeter

Value
a

END
V

PSEUDOCODE
START
Enter number A, B
Calculate Area = A * B
Calculate Perimeter = 2A+2B
Print Area & Perimeter Value
END
2
Start
FLOWCHART

Enter number
O =Old salary

N=New Salary O, N
a

Calculate
Increment = N-O

Calculate
Percentage of increment = (increment/O)*100%

Print

Percentage of increment
Value
a

END
V

PSEUDOCODE
START
Enter number O, N
Calculate Increment = N-O
Calculate Percentage of increment = (increment/O)*100%
Print Percentage of increment Value
END
3
Start
FLOWCHART

READ:
N1, N2
a

Set
N1= N2

Set
N2= N1

Print
N1, N2 Value
a

END
V

PSEUDOCODE
START
Enter number N1, N2
Set N1= N2
Set N2= N1
Print N1 & N2 Value
END
4
Start
FLOWCHART

Enter number
N
a

Calculate
Hour= floor (N /3600)

Calculate
MOD = N- (Hour*3600)

Calculate
Minute =floor (MOD /60)

Calculate
Seconds= MOD-(Minute *60)

Print

Hour, Minute, Seconds

Value
PSEUDOCODE a

START
END
V
Enter number N
Calculate Hour =floor (N /3600)
Calculate MOD = N- (Hour*3600)
Calculate Minute =floor (MOD /60)
Calculate Seconds =MOD-(Minute *60)
Print Hour, Minute, Seconds Value

END
5
Start
FLOWCHART

Enter number
T =Area of a triangle

C=Area of a circle a, b, r
a

Calculate

T = 0.5*a*b

Calculate

C =r² * π

Calculate
the area of the shaded parts = T- (0.5*C)

Print

the area of the shaded parts


Value
a

END
V
PSEUDOCODE
START
Enter number a, b, r
Calculate T = 0.5*a*b
Calculate C =r² * π
Calculate the area of the shaded parts = T- (0.5*C)
Print the area of the shaded parts Value

END
6
Start
FLOWCHART

READ:
YES

NO D, N, A
IF
a
D&N&A <=9
Set
C1=D *100

Set
C2=N *10

Set
C3=A

Calculate
F= C1 +C2 +C3

No IF yes

F =479

Set
Print
F =974
F Value
a
Print

F Value
a

END
6

PSEUDOCODE
START
Enter number D, N, A
IF D&N&A >9
Enter number D, N, A
IF D&N&A <=9
Set C1=D *100
Set C2=N *10
Set C3=A
Calculate F= C1 +C2 +C3
IF F =479
Set F =974
IF F ≠479
Print F Value
END
7
Start
FLOWCHART

Enter number
M1 =the mass of the first body

M2 =the mass of the second body M1, M2, D


a
D=Distance between the two bodies
Set
K= 6.67 X

Calculate

F = 𝐾 (𝑀1 + 𝑀2)
𝐷²

Print
F Value
a

END
V

PSEUDOCODE
START
Enter number M1, M2, D
Set K= 6.67 X
𝑀1 + 𝑀2
Calculate F = 𝐾 ( )
𝐷²
Print F Value
END

You might also like