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, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the “ married filing jointly “ status? a. 4 b. 5 c. 3 d. 2
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
To remove text from a specific location and keep it to use again, you should select
Answers: 1
You know the right answer?
Sammy’s seashore supplies rents beach equipment to tourists. in previous chapters, you developed a c...
Questions
question
Mathematics, 26.10.2019 18:43
Questions on the website: 13722360