Sunteți pe pagina 1din 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

S-ar putea să vă placă și