asked 159k views
2 votes
Write a program to find final velocity (v²=u²+2as) qbasic​

1 Answer

7 votes

Answer:

SCREEN 12 ' Sets the screen mode to graphics mode

CLS ' Clears the screen

INPUT "Enter the initial velocity (u): ", u

INPUT "Enter the acceleration (a): ", a

INPUT "Enter the displacement (s): ", s

v = SQR((u * u) + (2 * a * s))

PRINT "Final Velocity (v): "; v

END

Step-by-step explanation:

In this program, you are prompted to enter the values for initial velocity.

(u), acceleration

(a), and displacement

(s). The final velocity

(v) is then calculated using the formula v² = u² + 2as. Finally, the program displays the calculated final velocity.

Correct me if I'm incorrect.

answered
User Khandpur
by
8.9k points

Related questions

asked May 6, 2024 152k views
Raimondo asked May 6, 2024
by Raimondo
9.0k points
1 answer
5 votes
152k views
asked Feb 20, 2017 3.8k views
Cmcculloh asked Feb 20, 2017
by Cmcculloh
7.4k points
1 answer
3 votes
3.8k views