CSIS 296 Grossmont College Intro to Java Programming Lab Report
Question Description
There are 5 questions. I already attached 4 of them as a png. Please try to answer correctly. I expect at least 90.
Assuming there are no accidents or delays, the distance that a car travels down theinterstate can be calculated with the following formula:
Distance = Speed × Time
A car is traveling at 60 miles per hour. Design a program that displays the following:
? The distance the car will travel in 5 hours
? The distance the car will travel in 8 hours
? The distance the car will travel in 12 hours
Hint:
// Variables to hold the distances.
Declare Real distance5Hours, distance8Hours, distance12Hours
// Constant for the speed.
Constant Integer SPEED = 60
// Calculate the distance the car will travel in
// 5, 8, and 12 hours.
Set distance5Hours = SPEED * 5
Set distance8Hours = SPEED * 8
Set distance12Hours = SPEED * 12
// Display the results.
Display “The car will travel the following distances:”
Display distance5Hours, ” miles in 5 hours.”
Display distance8Hours, ” miles in 8 hours.”
Display distance12Hours, ” miles in 12 hours.”
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."