Question 3 (5 Marks): CLO 4 Consider the classes of question 2 and the methods therein and create a GUI version based on your creativity and learning approaches from Programming Lab II. The students are allowed to add more methods of their interest. The GUI should target simplicity and elegant look.
Question 2 (10 Marks): CLO1, 2, 3, 5 Consider this project has 4 classes (including Test Class) as the following: Flat foorum Property - String location on mooons in - price double . Fut • FutStringing out Setten & Ex - Property Property Stringiring, int double payt void Villa Vint hangol boolean . StringSting, it double stolen Settent & puters von A. Create class Property B. Create class Flat that inherits from the class Property C. Create class Villa that inherits from the class Property D. In the Test class (in main method), create an ArrayList of the Property objects and name it listOfProperties E. In the Test class (in main method), assume your own objects and add them to the ArrayList listOfProperties. One Object of Property, Two Objects of Flat, Three Objects of Villa F. In the Test class (in a new method), create a method "getCheapest Property" that: 1. Receives ArrayList of type Property 2. Returns the location of the object that has the lowest price in the ArrayList. G. In the Test class (in a new method), create a method "printVillasWithSwimPool" that: 1. Receives ArrayList of type Property. 2. Prints details of the Villa objects in the ArrayList, that have swimming pool. So, hasSwimmingpool is True. H. In the Test class (in main method), test methods created in step F and G. Question 3 (5 Marks): CLO 4 Consider the classes of question 2 and the methods therein and create a GUI version based on your creativity and learning approaches from Programming Lab II. The students are allowed to add more methods of their interest. The GUI should target simplicity and elegant look.
Question 3 (5 Marks): CLO 4 Consider the classes of question 2 and the methods therein and create a GUI version based on
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 3 (5 Marks): CLO 4 Consider the classes of question 2 and the methods therein and create a GUI version based on
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!