17 Write A Java Program That Will Perform Some Calculations Regarding A Cyclist Coasting On A Road The Program Will As 1 (40.34 KiB) Viewed 60 times
17 Write A Java Program That Will Perform Some Calculations Regarding A Cyclist Coasting On A Road The Program Will As 2 (12.85 KiB) Viewed 60 times
17. Write a Java program that will perform some calculations regarding a cyclist coasting on a road. The program will ask the user to enter the cyclist's initial speed Vinitial, the duration (in minutes), and the final speed Vfinal. The program will then calculate the rate of acceleration using the formula: acceleration (Vfinal - Vinitial) ÷ duration Next, calculate how long it will take for the cyclist to stop (given the initial speed and the calculated acceleration.) The necessary formula is: time = Vinitial + acceleration Display the acceleration and time on screen formatted to the below samples.
Sample Input/Output Enter initial speed, final speed and duration 18.0 36.0 4.0 Acceleration = 4.5 4.0 minutes to stop
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!