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 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
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
English, 06.11.2020 17:50
question
Biology, 06.11.2020 17:50
question
World Languages, 06.11.2020 17:50
question
Mathematics, 06.11.2020 17:50
question
Mathematics, 06.11.2020 17:50
Questions on the website: 13722361