Answer to Question #263565 in Java | JSP | JSF for meenu

Question #263565

You are required to design a Car class which has following attributes

        String brand;

        Double price;

        Double quantity;

        String Model;

        Boolean available;

1.     Provide a toString() method to print values.

create an ArrayList of Cars in a class ShowRoom having name and address as attributes as well, Provide appropriate methods, store values in array List (take values form user).

Provide a buy method which will ask user to buy a Car by providing its name, check that it is present or not then ask for quantity and create bill for user.

After that you have to print the following:

2.     Add Car, delete Car, Buy a Car, Display all cars

Also display:

·        Car of brand “Audi”;

·        Car with name starting with ‘L’.

·        Car name end with ‘n’.

·        Display only last three and first three letters of Showroom name.


1
Expert's answer
2021-11-09T13:12:03-0500
Dear meenu, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS