The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 406 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
One of the most popular kinematic equations is the one for final velocity: vf = vi + a*t, where vf = final velocity, vi = initial velocity, a = acceleration and t = time. Write a java method that calculates this formula given the arguments. Then in your main, ask the user to input the initial velocity and acceleration for 2 items. Finally, output their increasing velocities over 10 timesteps, calling your method in each iteration. Example Output: Enter the initial velocity of item 1: 10 Enter the acceleration of item 1: 4 Enter the initial velocity of item 2: 3 Enter the acceleration of item 2: 6 After 1 timestep: Item 1's velocity = 14, Item 2's velocity = 9 After 2 timesteps: Item 1's velocity = 18, Item 2's velocity = 15 . . . and so on until 10 timesteps
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll