Question: Create a class named WashingMachineLastName.java that contains: A private string data field named brand A private string data field named model A private double data
Create a class named WashingMachineLastName.java that contains:
A private string data field named brand
A private string data field named model
A private double data field named price
A constructor that creates an automobile with the specified brand, model and price
The accessor and mutator methods for brand and model
A method named salePrice that returns the price of the vehicle with a percent
discount.
Create a driver named WMTestLastName.java that creates three instances of
WashingMachineLastName and uses an array of Washing Machines to store them. Traverse the
array and print a table that displays the brand, model, price, and sale price for each washing
machine.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
