Write a program to read and store four student's car number and their distances, sort them into an order name, based on distances from the near to the far, then print them out. The student's car number and the distances values should be typed in by the user in response to a prompt message. Save the file as SortName_yourlD.java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Write a program to read and store four student's car number and their distances, sort them into an order name, based on distances from the near to the far, then print them out. The student's car number and the distances values should be typed in by the user in response to a prompt message. Save the file as SortName_yourlD.java
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT