Create a java program 8. Speedy, Still Not, Gonzales Recall that the general speed limits in the Philippines in 60 km/h on most highways and 100 km/h on expressways. Let's add a minimum speed when one is in an expressway and that minimum speed limit is 40 km/h. Your goal here is to compute the speed of automobiles based on distance travelled and time taken to cover this distance. And at the same time, whether the driver is over-speeding, within speed limit, or under-speeding. Input Format The input is composed of 3 positive integers representing the road the driver is on (1 for highway, 2 for expressway), distance traveled in meters, and the number of minutes it took to cover the given distance. Input Sample 1·2500·356 Output Format The output should contain the computer speed in km/h (two decimal places) and the status as to whether the driver is over-speeding, within-speed-limit, or under-speeding. Output Sample 0.42·within-speed-limit

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Create a java program 8. Speedy, Still Not, Gonzales Recall that the general speed limits in the Philippines in 60 km/h on most highways and 100 km/h on expressways. Let's add a minimum speed when one is in an expressway and that minimum speed limit is 40 km/h. Your goal here is to compute the speed of automobiles based on distance travelled and time taken to cover this distance. And at the same time, whether the driver is over-speeding, within speed limit, or under-speeding. Input Format The input is composed of 3 positive integers representing the road the driver is on (1 for highway, 2 for expressway), distance traveled in meters, and the number of minutes it took to cover the given distance. Input Sample 1·2500·356 Output Format The output should contain the computer speed in km/h (two decimal places) and the status as to whether the driver is over-speeding, within-speed-limit, or under-speeding. Output Sample 0.42·within-speed-limit
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY