1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Aloiza [94]
3 years ago
15

java Consider a class MotorBoat that represents motorboats. A motorboat has attributes for: The capacity of the fuel tank The am

ount of fuel in the tank The maximum speed of the boat The current speed of the boat The efficiency of the boat's motor The distance traveled The class has methods to: Change the speed of the boat Operate the boat for an amount of time at the current speed
Computers and Technology
1 answer:
zubka84 [21]3 years ago
5 0

Explanation:

Below is the java code for the class MotorBoat  : -

public class MotorBoat {

   private int tankCapacity;

   private int fuelAmount;

   private double maxBoatSpeed;

   private double currentBoatSpeed;

   private double efficacy;

   private double distanceTravelled;

   

   public void changeSpeed(double speed){

       currentBoatSpeed = speed;

   }

   public double operateBoat(double time){

       distanceTravelled = currentBoatSpeed * time;

       return distanceTravelled;

   }

}

You might be interested in
what programs controls all operations of the computer hardware such as memory storage devices or printers and provides for you t
IrinaK [193]
Operating Systems control all operations
6 0
3 years ago
You're going to be mowing lawns as a summer job. How long will it take for your
ahrayia [7]
Hshshshhshshs 3. 4 hours
8 0
3 years ago
To change the size of a field or record by dragging its border a.resize b.magnify c.label d.enlarge
4vir4ik [10]
A. Resize

By dragging the border of a field or record, you are either enlarging it or compressing it. Choices "b" and "d" are only half correct, as there is always the possibility of making it smaller. Hope this helps!
6 0
3 years ago
Read 2 more answers
The Tab dialog box helps you set tabs in your word processing document. What does this dialog box control the movement of when y
Nata [24]
<span> What does this dialog box control the movement of when you press the tab key?
answer: cursor
but im not 100% sure so sorry if I get you the wrong answer :/ </span>
8 0
3 years ago
Read 2 more answers
. Evan is creating a worksheet and needs to copy information in cells A2:A13 into cells B2:B13. Which of the following is the ea
Fantom [35]
Highlight A2 and drag down and select the cells to A13. Then do ctrl+c to copy.
Next Highlight the cell B2 and then do ctrl+v. This will paste all the cells 
4 0
3 years ago
Other questions:
  • ___ refers to all aspects of managing and processing information using computers and computer networks
    13·1 answer
  • Which of the following is a domestic business activity?
    6·2 answers
  • What does the hard disk drive do?
    9·2 answers
  • Crystal detected a problem in a computer network, due to which she could not send or receive data within the network. She pings
    5·2 answers
  • Why would it be a bad idea for gateways to pass broadcast packets between networks? What would be the advantages of doing so
    12·1 answer
  • _____ are independent and not associated with the marketing efforts of any particular company or brand.​
    9·1 answer
  • One factor in algorithm performance that we've not had a chance to speak much about this quarter, but one that is certainly rele
    6·1 answer
  • What is the purpose of a Macro in Word?: *
    13·1 answer
  • Because floating points have decimals, they're more precise and take up more memory than integers.
    6·1 answer
  • Point out the wrong statement.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!