Question: Java i need correct and full code , quick please .. Instructions: - You must paste your code in the provided space below. - file

Java

i need correct and full code , quick please ..

 Java i need correct and full code , quick please ..

Instructions: - You must paste your code in the provided space below. - file upload is an optional for you 2- 3- 4. Create a java project and name it "FinalExam_91": (0,25 for each error in the code) 1. Create new java package inside the project and name it "Labtop.pkg (0.5m) Add new class to the labtop.pkg and name it "Laptop. (1m) Add the following attributes (member variables): to the Laptop class Id, brand and price (brand attribute can take values like "DELL", "ASUS"..), (m) Attributes should be encapsulated within the class. (2m) 5. Add a constructor to the class that initialize all variables. (1m) 6. Add calculate_price() method to Laptop class, the method should takes one integer parameters (no) and return price "no (m) 7. Add display method to Laptop class that print all details on one line (2m) In the main program: Create an instance of the Laptop class that can (2m) b. Call the calculate_price ) and display the Laptop details. (1m) The main program should handle All Exception (0,5m) 9. Add some comments to your program. (0.5m) 10- Test your program. (0.5m) 8. a. C

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!