subject

A. sammy’s seashore supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. in chapters 3 and 4, you created a rental class for the company. now, make the following change to the class: currently, a rental price is calculated as $40 per hour plus $1 for each minute over a full hour. this means that a customer who rents equipment for 41 or more minutes past an hour pays more than a customer who waits until the next hour to return the equipment. change the price calculation so that a customer pays $40 for each full hour and $1 for each extra minute up to and including 40 minutes. save the file as rental. java.
b. inchapter4,. now, modify that class again as follows: instantiate three rental objects, and prompt the user for values for each object. display the details for each object to verify that the new price calculation works correctly. create a method that accepts two rental objects and returns the one with the longer rental time. (if the rentals have the same time, you can return either object.) call this method three times—once with each pair of instan- tiated rentals—and display the contract number and time in hours and minutes for each argument as well as the contract number of the longer rental. save the file as rentaldemo. java.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
You know the right answer?
A. sammy’s seashore supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrell...
Questions
question
Mathematics, 05.02.2021 03:30
question
English, 05.02.2021 03:40
question
Mathematics, 05.02.2021 03:40
question
Mathematics, 05.02.2021 03:40
question
Mathematics, 05.02.2021 03:40
Questions on the website: 13722363