Question: You modified the RentalDemo program for Sammys Seashore Supplies to accept and display data for an array of three Rental objects. Now, modify the program
You modified the RentalDemo program for Sammy’s Seashore Supplies to accept and display data for an array of three Rental objects. Now, modify the program to use an array of eight Rental objects. Prompt the user to choose an option to sort Rentals in ascending order by contract number, price, or equipment type. Display the sorted list, and continue to prompt the user for sorting options until the user enters a sentinel value. Save the file as RentalDemo.java.
Step by Step Solution
3.40 Rating (169 Votes )
There are 3 Steps involved in it
class Rental public static final int MINUTESINHOUR 60 public static final int HOURRATE 40 public static final int CONTRACTNUMLENGTH 4 public static final String EQUIPTYPES personal watercraft pontoon ... View full answer
Get step-by-step solutions from verified subject matter experts
