EXER01
EXER01
1. Displacement
Create a flowchart and pseudocode that will ask the user to enter the initial velocity and the
final velocity of a moving object in linear motion. Likewise, the program will also ask for the time
traveled by the object. Then, the program should be able to compute for the distance traveled.
Variables Used
Begin
𝑡 Display “Displacement” =, 𝑆
End
output 𝑎
1
(𝑎)(𝑡2)
𝑆 = (𝑣𝑖)𝑡
2
output 𝑆
End
2. Extract the Digits
Create a flowchart and pseudocode that would input a 5-digit number and then extract its one’s
digit, ten’s digit, hundred’s digit, thousand’s digit and ten thousand’s digit. Output the extracted
digits and output the digits in reverse order (you must use a formula / arithmetic expression in
reversing the order of the 5-digit number). NOTE: Use appropriate words for your variables.
r = reverse
Begin
input Accept = x
if x > 0, then
d = x % 10
x = x / 10
True
d = x % 10
x = x / 10
output d
End