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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, glocurlsprinces
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
image
Computers and Technology, 22.06.2019 19:10, hgdthbgjnb83661
What a backup plan that you have created in a event you encounter a situation
Answers: 2
image
Computers and Technology, 23.06.2019 04:20, milkshakegrande101
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy. a. a fire occurs on the premises, and the building isbadly damaged. b. a burglar steals some money and securities from anunlocked safe. c. a business computer is damaged by vandals whobreak into the shop after business hours. d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm. til
Answers: 2
You know the right answer?
A. sammy’s seashore supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrell...

Questions in other subjects:

Konu
Mathematics, 07.01.2021 21:40