Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started