Question: Calculate initial velocity Problem Statement The first equation of motion is v = u + a * * t where, v: final velocity
Calculate initial velocity
Problem Statement
The first equation of motion is where,
v: final velocity in meterssecond
u: initial velocity in meterssecond
a: acceleration in meterssecond
t: time interval in second
You are given the final velocity, acceleration, and time interval. Find the initial velocity.
Input Format
The input consists of a single line:
The line contains three integers and respectively.
Input will be read from the STDIN by the candidate
Output Format:
Print the initial velocity ie
The output will be matched to the candidate's output printed on the STDOUT
Constraints:
Example:
Input:
Output
Explanation:
By first equation of motion we have Now hence
Sample input
Sample Output
Instructions :
Program should take input from standard input and print output to standard output.
Your code is judged by an automated system, do not write any additional welcomegreeting messas
"Save and Test" only checks for basic test cases, more rigorous cases will be used to judge your co
Additional score will be given for writing optimized code both in terms of memory and execution tim
Now let's start coding :
Language: Java
import
java.io;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
