subject

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 four 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.

class rental

{

public final static int minutesinhour = 60;

public final static double hourlyrentalrate = 40;

private string contractnumber;

private int hours;

private int minutesoverhour;

private double price;

private int min;

public rental()

{

this("a000", 0);

}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
You know the right answer?
Sammy’s seashore supplies rents beach equipment to tourists. in previous chapters, you developed a c...
Questions
question
Chemistry, 17.12.2020 01:30
question
Mathematics, 17.12.2020 01:30
question
Mathematics, 17.12.2020 01:30
question
Arts, 17.12.2020 01:30
question
Mathematics, 17.12.2020 01:30
question
English, 17.12.2020 01:30
Questions on the website: 13722360