Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Displacement
Flowchart Pseudocode

START

Input:
V i = input the initial velocity

V f = input the final velocity

t = input the time travelled

Process:

V f −V i
a=
t
2
1
S = V i t + at
2

Output:
Display: “The moving object
had an acceleration of:”, S;

END
2. Extract the Digits
Flowchart Pseudocode

START

Input:
Enter a 5-digit number

Process:
digit 1 = num% 10
digit 2 = (num% 10)/10
digit 3 = (num%100)/10
digit 4 = (num % 1000)/10
digit 5 = (num% 10000)/10
Reverse digit = (digit 1 * 10000) + (digit
2 * 1000) + (digit 3 * 100) + (digit 2 * 10) +
digit 5

Output:
Display:
“Ten Thousand’s Digit is.” , digit 1;
“Thousand’s Digit is.” , digit 2;
“Hundred’s Digit is.” , digit 3;
“Ten’s Digit is:” , digit 4;
“One’s Digit is:” , digit 5;
“The reverse order is:” , reverse digit;
END

You might also like