Documente Academic
Documente Profesional
Documente Cultură
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
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
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
START
5. Create a flowchart that will compute for the salary of 100 workers
START
IS C>100 00
STOP
INPUT NAME, H
S= W * H
PRINT NAME, S
C+1