This class represents a car. @author */ public class Car { /** The model of the car
Question:
This class represents a car. @author */ public class Car {
/** The model of the car (e.g. "Hyundai Accent"). */
/** The fuel efficiency of the car (in liters/100 km). */
/** The amount of gas in the tank (in liters). */
/** The text that is on the license plate of the car (e.g. "GNB 123"). */
/** This method constructs a car with the specified model, fuel efficiency, and license plate text. The gas tank is initially empty. @param modelIn the model of the car. @param fuelEfficiencyIn the fuel efficiency of the car (in liters/100 km). @param plateTextIn the license plate text for the car. */
/** This method retrieves the model of the car. @return the model of the car. */
/** This method retrieves the fuel efficiency of the car. @return the fuel efficiency of the car (in liters/100 km). */
/** This method retrieves the amount of gas in the tank. @return the amount of gas in the tank (in litres). */
/** This method retrieves the license plate text. @return the text that is on the license plate of the car. */
/** This method drives the car for a certain distance, reducing the gas in the tank. You may assume that the car will never consume more than the available gas (you do NOT need to include a check for this in your solution). @param distance the distance driven (in km). */
/** This method adds gas to the tank. @param gasAdded the volume of gas added to the tank (in liters). */ /** This method changes the license plate text. @param plateTextIn the text for the new license plate of the car. */
} //end Car There is a javadoc comment for the class itself, as well as a javadoc comment for each instance variable and method. Read these comments carefully, and fill in the missing code (in the proper locations within the file). Implement the Car class as it has been described in the javadoc comments.. Also, include only those instance variables and methods that have been described in the comments; no other instance variables or methods should be added
Essentials of Business Analytics
ISBN: 978-1285187273
1st edition
Authors: Jeffrey Camm, James Cochran, Michael Fry, Jeffrey Ohlmann, David Anderson, Dennis Sweeney, Thomas Williams