Question: Sammys Seashore Supplies rents beach equipment to tourists. In previous chapters, you developed a class that holds equipment rental information and an application that tests
Sammy’s Seashore Supplies rents beach equipment to tourists. In previous chapters, you developed a class that holds equipment rental information and an application that tests the methods using three objects of the class. Now modify the RentalDemo class to do the following:
- Continuously prompt for the number of minutes of each Rental until the value falls between 60 and 7,200 inclusive.
- For one of the Rental objects, create a loop that displays Coupon good for 10 percent off next rental as many times as there are full hours in the Rental. Save the modified file as RentalDemo.java.
Step by Step Solution
3.30 Rating (176 Votes )
There are 3 Steps involved in it
class Rental public static final int MINUTESINHOUR 60 public static final int HOURRATE 40 private St... View full answer
Get step-by-step solutions from verified subject matter experts
