Answer to Question #325733 in Java | JSP | JSF for ethan padilla

Question #325733

1.    You must create a class named Bus.

2.    You should also create a main class named Main.

3.    In the Bus class, there should be member variables named:

   -(integers) = length, capacity, speed

   -(double) = fuel_capacity, fuel_burn_rate;

   -(String) = name, color;

 

4.    Create a constructor in the Bus class containing the parameters:

   -name

   -length

   -capacity

   -color

   -speed

   -fuel_capacity

   -fuel_burn_rate

5.Create the following methods in the Bus class:

     -*Must be a return method.

     -*Must have a variable named result. 

     -*Must compute the estimated travel hour/s of a bus using the member variables fuel

     -*Must compute the gas used within the given hour/s using the member variables



0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS