Question: this is a java assignement: -make:String -model:String -type:String -price:double < >Automobile() < >Automobile(String make, String model, String type, double price) +getMake():String +getModel():String +getType():String +getPrice():double +setMake(String

this is a java assignement:

-make:String

-model:String

-type:String

-price:double

<>Automobile()

<>Automobile(String make, String model, String type, double price)

+getMake():String

+getModel():String

+getType():String

+getPrice():double

+setMake(String make):void

+setModel(String model):void

+setType(String type):void

+setPrice(double price):void

+toString():String

Write class Automobile and be sure to follow our coding standards.

Write the AutomobileTest class that creates two instances of Automobiles with the following data:

Toyota, Corolla, Sedan, 22,500

Ford, Focus, Convertible, 19,999

Perform the following:

The Ford automobile price has been increased by 15%. You need to reflect that increase in

the Ford instance. Then, you need to print all the instance values for both instances to the command prompt.

A company bought 3 Toyotas. Print the total charge in a dialog box. Make sure the money is

formatted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!