Question: JAVA Program Requirements The program will be written in NetBeans Start with a copy of your project from 11.13 (so you won't lose your work


JAVA
Program Requirements The program will be written in NetBeans Start with a copy of your project from 11.13 (so you won't lose your work from 11.13) Copy the project folder: to a new project folder named Topicl1partl Topic11part2 * Open the project in the Topic11part2 folder in NetBeans . Click on the Projects tab . Right-click the Project name at the top of the projects window. . Select "Rename", and rename the project to Topic11part2 to match the folder Within the Auto class (used to create Auto type objects): . Include top of file comments with descriptions and an @author tag Add a second constructor that: Has parameters for each data field/member of the class (model year, make/model, mileage, and tank capacity, in that order) Uses the parameter values to initialize the data fields o o Add the following additional methods to the Auto class (must use these exact method names) o computeAvgMiles ) public method to compute average miles on a car for its age . . Create a constant to hold the current year (2018) . Create a constant to hold the average of 12,000 miles per year old . Use the model year to compute the car's age and then use the age to compute the car's average miles for its age This method will have no parameters, and will return the car's avg miles for its age o computeRange ) - public method to compute the car's range (miles per tank) This method will have no parameters, and will return the car's range o displayAutoData() - public method to all display the data field values, formatted as in Topic11partl This method will have no parameters and will not return anything Include method comments above each method, with method descriptions, @return tags, and @param tags
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
