Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that will ask the user to enter the distance in miles that they plan to drive and the speed that they plan

image text in transcribed
Write a program that will ask the user to enter the distance in miles that they plan to drive and the speed that they plan to go in miles-per-hour. Several sample program runs with sample output are shown below. Enter the distance to travel (miles): 150 Enter the speed (miles/hr):60 To travel 150.0 miles going 60.0 mph will take 2.50 hrs. Enter the distance to travel (miles): 571 Enter the speed (miles/hr): 75 To travel 571.0 miles going 75.0 mph will take 7.61 hrs. Enter the distance to travel (miles) 345.5 Enter the speed (miles/hr): 80.5 To travel 345.5 miles going 80.45 mph will take 4.29 hrs

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions