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, 21.06.2019 21:30
You need to write some code that responds to a text change in a jtextfield. how can you do that? create a class that implements the interface actionlistener and override the method textfieldchanged create a class that extends the superclass actionlistener and override the method actionperformed create a class that implements the interface actionlistener and override the method actionperformed create a class that extends the superclass actionlistener and override the method textfieldchanged
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
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
Social Studies, 13.10.2019 00:50
question
Biology, 13.10.2019 00:50
question
Mathematics, 13.10.2019 00:50