ull code us beloweed WalkBehindMower, GasPoweredMower, PushReelMower, and MowerWarehouse class. I need the output to look exactly like the example in the photo. I pasted the "dataset" for the program. I pasted the others codes I've worked on so far to go off of. Please modify them as well. Dataset:   public class Engine { private String manufacturer; private double horsePower; private int cylinders; public Engine() { manufacturer = ""; horsePower = 0; cylinders = 0; } public Engine(String manufacturer, double horsePower, int cylinders) { this.manufacturer = manufacturer; this.horsePower = horsePower; this.cylinders = cylinders; } public String getManufacturer() { return manufacturer; } public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } public double getHorsePower() { return horsePower; } public void setHorsePower(double horsePower

Principles of Information Systems (MindTap Course List)
13th Edition
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter10: Knowledge Management And Specialized Information Systems
Section: Chapter Questions
Problem 14SAT
icon
Related questions
Question

N full code us beloweed WalkBehindMower, GasPoweredMower, PushReelMower, and MowerWarehouse class. I need the output to look exactly like the example in the photo. I pasted the "dataset" for the program. I pasted the others codes I've worked on so far to go off of. Please modify them as well.

Dataset:

 

public class Engine { private String manufacturer; private double horsePower; private int cylinders; public Engine() { manufacturer = ""; horsePower = 0; cylinders = 0; } public Engine(String manufacturer, double horsePower, int cylinders) { this.manufacturer = manufacturer; this.horsePower = horsePower; this.cylinders = cylinders; } public String getManufacturer() { return manufacturer; } public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } public double getHorsePower() { return horsePower; } public void setHorsePower(double horsePower) { this.horsePower = horsePower; } public int getCylinders() { return cylinders; } public void setCylinders(int cylinders) { this.cylinders = cylinders; } @Override public String toString() { return "Engine: " + "\nmanufacturer=" + manufacturer + "\nhorsePower=" + horsePower + "\ncylinders=" + cylinders; } }

============================================================================================

public abstract class Mower { private String manufacturer; private int year; private String serialNumber; public Mower() { manufacturer = ""; year = 0; serialNumber = ""; } public Mower(String manufacturer, int year, String serialNumber) { this.manufacturer = manufacturer; this.year = year; this.serialNumber = serialNumber; } public String getManufacturer() { return manufacturer; } public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public String getSerialNumber() { return serialNumber; } public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; } @Override public String toString() { return "Mower: " + "\nmanufacturer=" + manufacturer + "\nyear=" + year + "\nserialNumber='" + serialNumber; } }

============================================================================================

public class LawnTractor extends Mower { private Engine enginer; private String model; private double deckWidth; public LawnTractor() { } public Engine getEnginer() { return enginer; } public void setEnginer(Engine enginer) { this.enginer = enginer; } public String getModel() { return model; } public void setModel(String model) { this.model = model; } public double getDeckWidth() { return deckWidth; } public void setDeckWidth(double deckWidth) { this.deckWidth = deckWidth; } @Override public String toString() { return "LawnTractor:" + "\nenginer=" + enginer + "\nmodel=" + model + "\ndeckWidth=" + deckWidth ; } }

============================================================================================

public class CommericalMower extends LawnTractor { private double operatingHours; private boolean zeroTurnRadius; public CommericalMower() { operatingHours = 0; zeroTurnRadius = false; } public double getOperatingHours() { return operatingHours; } public void setOperatingHours(double operatingHours) { this.operatingHours = operatingHours; } public boolean isZeroTurnRadius() { return zeroTurnRadius; } public void setZeroTurnRadius(boolean zeroTurnRadius) { this.zeroTurnRadius = zeroTurnRadius; } @Override public String toString() { return "CommericalMower{" + "\nOperating Hours=" + operatingHours + "\nZero Turn Radius=" + zeroTurnRadius; } }.

 

The name of the input file will be supplied using command-line
arguments. If no command-line argument is supplied, then your
program should prompt the user for the input file using the
JFileChooser class. Here is the format of the input file:
Store name
Mower Class Properties
Mower Subclass Type (L, C, G, P)
Subclass Properties
5 Output
You need to ask the user to input which type of concrete mower
he wishes to get information on. Provide four options:
Lawn Tractor, CommericalMower, GasPoweredMower and
Push ReelMower. He can only chose one of the four by providing a
character:L for Lawn Tractor, C for Commercial, G for Gas
powered, and P for Push reel. If he provides any other input, output that the option provided is
invalid. Otherwise, if selected one of the four, display a list of mowers in that type and provide it's
details. Example output can be seen below:
Bush Hog Manufacturing, 2013, AFXH3, G, 20.0, 16.0, Homelite Parts, 10.5, 2, true
Type C for Commercial Mower, G for Gas Powered Mower D
Note: Each properties will be on a
separate line in the same order
listed in the UML diagrams.
Figure 1: Input File Format
Enter your choice of Mower to get information.
Type C for Commercial Mower, G for Gas Powered Mower, P for Push reel Mower, L for Lawn Tractor, and S to stop
Briggs and Stratton, 2015, AFXH1, L,Gravely Parts, 10.8,2,Model1, 45.5
Briggs and Stratton II, 2015, AFXH1vv, L, Gravely Parts, 13.3,2, Model1, 45.5
Type C for Commercial Mower, G for Gas Powered Mower, P for Push reel Mower, L for Lawn Tractor, and S to stop
G
Transcribed Image Text:The name of the input file will be supplied using command-line arguments. If no command-line argument is supplied, then your program should prompt the user for the input file using the JFileChooser class. Here is the format of the input file: Store name Mower Class Properties Mower Subclass Type (L, C, G, P) Subclass Properties 5 Output You need to ask the user to input which type of concrete mower he wishes to get information on. Provide four options: Lawn Tractor, CommericalMower, GasPoweredMower and Push ReelMower. He can only chose one of the four by providing a character:L for Lawn Tractor, C for Commercial, G for Gas powered, and P for Push reel. If he provides any other input, output that the option provided is invalid. Otherwise, if selected one of the four, display a list of mowers in that type and provide it's details. Example output can be seen below: Bush Hog Manufacturing, 2013, AFXH3, G, 20.0, 16.0, Homelite Parts, 10.5, 2, true Type C for Commercial Mower, G for Gas Powered Mower D Note: Each properties will be on a separate line in the same order listed in the UML diagrams. Figure 1: Input File Format Enter your choice of Mower to get information. Type C for Commercial Mower, G for Gas Powered Mower, P for Push reel Mower, L for Lawn Tractor, and S to stop Briggs and Stratton, 2015, AFXH1, L,Gravely Parts, 10.8,2,Model1, 45.5 Briggs and Stratton II, 2015, AFXH1vv, L, Gravely Parts, 13.3,2, Model1, 45.5 Type C for Commercial Mower, G for Gas Powered Mower, P for Push reel Mower, L for Lawn Tractor, and S to stop G
MowerWareHouse
Lawn Tractor
Commercial Mower
Mower
AA
Engine
WalkBehindMower
GasPoweredMower
Push Reel Mower
Transcribed Image Text:MowerWareHouse Lawn Tractor Commercial Mower Mower AA Engine WalkBehindMower GasPoweredMower Push Reel Mower
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage