0% found this document useful (0 votes)
76 views6 pages

Ian Rey G. Magnate

The document contains 5 flowcharts: 1) Reads two numbers and displays them in decreasing order. 2) Prints the square and cube of an input number. 3) Calculates an employee's pay based on an hourly rate of $6. 4) Finds the smallest number from three input numbers. 5) Computes the salary of 100 workers based on a wage rate and hours worked.

Uploaded by

Ian Rey
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views6 pages

Ian Rey G. Magnate

The document contains 5 flowcharts: 1) Reads two numbers and displays them in decreasing order. 2) Prints the square and cube of an input number. 3) Calculates an employee's pay based on an hourly rate of $6. 4) Finds the smallest number from three input numbers. 5) Computes the salary of 100 workers based on a wage rate and hours worked.

Uploaded by

Ian Rey
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Ian Rey G.

Magnate

1. Create a flowchart that reads two numbers and display the number in decreasing order

START

A=0 B=0

INPUT A, B

A<B

PRINT A, B

PRINT B, A

STOP

2. Create a flowchart that will print the square and cube of a number

START

S=0, N=0 C=0

INPUT N

S= N*N C= N*N

PRINT S, C

STOP

3. Create a flowchart that will calculate the amount of employee should be paid per hour in a rate of 6 dollars per hour.

START

R=6, H=0, P=0

INPUT H

P=R*H

PRINT P

STOP

4. Create a flowchart the will find the smallest number from the 3 numbers

START

INPUT H

IF A>B

NO

IF A>C

NO

YES NO IF B>C

PRINT A IS SMALLEST

PRINT B IS SMALLEST PRINT B IS SMALLEST

START

5. Create a flowchart that will compute for the salary of 100 workers

START

C=1, NAME, S=0, W=30, H=0

IS C>100 00

STOP

INPUT NAME, H

S= W * H

PRINT NAME, S

C+1

You might also like