Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

good evening, this is my assignment that I need to get done asap. thank you! Mission #2 CS 1400 - Hilton I don't know about

image text in transcribed

good evening, this is my assignment that I need to get done asap. thank you!

Mission #2 CS 1400 - Hilton I don't know about you, but I love a good road trip! If you drive slowly on a road trip, it will take longer to reach the destination. If you drive fast, it stands to reason that you will arrive faster. I know that none of you would ever intentionally speed. But, hypothetically, how much time do you actually save by driving faster? Write a Java program that calculates how many minutes will be saved on a drive by driving faster than the speed limit. Prompt the user to enter: Name of the destination Number of miles to the destination Speed limit How many mph over the speed limit you wish to drive Calculate the result in minutes, and print the results for the user Sample session: Please enter your destination: Kearney, Nebraska How many miles is it to Kearney, Nebraska?: 743 What is the speed limit? 80 How fast do you plan on driving over the speed limit (in mph) ?: You will arrive in Kearney, Nebraska 32.77941176470591 minutes faster by driving 5.0 mph over the speed limit. Name your file Mission02/LastName].java and submit it via Canvas

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions