Professional Documents
Culture Documents
Input:
16. Algorithm
to
calculate
the P-M=Number of Women
percentage Total Nuber of People
of Subtract the number of Men from (P-M)*100/TNP
women the number of people in the
in Process: group, to get the number of W%=(30-13)*100/30
a women in the group. Then
group. multiply 100 and the number of
women and then divide by total
amount of people in the group.
Output:
Percentage of Women in a Group W%=56.67
Input:
2. Create
the
algorithm
that Y*S= set
calculates 20000*5
the amount
of money Number of Years Worked
to pay to Process: multiplied by the salary for 3
months and 20 days
the former
employee.
W% Double
Data Type
Y int
S double
Set Double
Data Type
CP double
PP double
FP double