Question: a. You created an interactive RentalDemo class that obtains all the data for four rentals from Sammys Seashore Rentals, including details about the contract number,
a. You created an interactive RentalDemo class that obtains all the data for four rentals from Sammy’s Seashore Rentals, including details about the contract number, length of the rental, and equipment type. Now, modify the program to create a data file that contains each contract number, rental time in hours and minutes, equipment type code and name, and price. Save the program as RentalDemoAndCreateFile.java.
b. Write a program that displays the data saved in the file created in part 2a.
Save the program as DisplayRentalFile.java.
Step by Step Solution
3.34 Rating (163 Votes )
There are 3 Steps involved in it
a class Rental class Rental public static final int MINUTESINHOUR 60 public static final int HOURRATE 40 public static final int CONTRACTNUMLENGTH 4 Equipment equipment private String contractNumber p... View full answer
Get step-by-step solutions from verified subject matter experts
