Question: / / 1 . Declare a variable of Quote type. / / 2 . Define the variable above to a new Quote instance with a

//1. Declare a variable of Quote type.
//2. Define the variable above to a new Quote instance with a sale price
// and tax rate of your choosing.
//3. Print the state of the Quote object using accessor methods.
// Format of the output is:
// field: value
//4. Print the Quote instance created in a previous step.
//5. Declare and define a new Quote object with the default state.
//6. Update the state of the second Quote object with a sale price
// between $10,000- $15,000 and a tax rate between 4.01% and 4.99%
//(inclusive).
//7. Declare a variable of List type that can store Vehicle objects.
//8. Define the variable from the previous step to an empty List object.
//9. Populate the List with 3 Vehicle objects. Each Vehicle object must
// have unique state.
//10. Print out the number of objects in the List, using the List object
// reference.
//11. Print out the Vehicle objects from the List.

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!