Question: a. Throughout the Case Problems in this course, you have been using a Rental class that obtains all the data for rentals from Sunshine Seashore
a. Throughout the Case Problems in this course, you have been using a Rental class that obtains all the data for rentals from Sunshine Seashore Supplies, including details about the contract number, length of the rental, and equipment type. Now, create an application that prompts the user for details about eight Rental objects, and create a data file that contains each contract number, equipment type code, rental time in hours and minutes, and price. Save the program as CreateRentalFile.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.39 Rating (165 Votes )
There are 3 Steps involved in it
a b import javaniofile import javaio import static javaniofile Sta... View full answer
Get step-by-step solutions from verified subject matter experts
