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 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
A. sammy’s seashore supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrell...
Questions
question
Mathematics, 23.06.2021 04:10
question
English, 23.06.2021 04:10
Questions on the website: 13722361