PRO192c_-_SU_2024_-_PE2_2579.webp
P

PRO192c_-_SU_2024_-_PE2_2579.webp

Develop an OOP application for Pet Management using the MVC architecture in NetBeans 17.
The application will manage a list of pets with the following functionalities:
1. Create MVC console application in Ne tBeans:
a. Define class Pet with the following attributes and methods (4 marks):
PetID, Nickname, Gender, YearOfBirth, Description.
PetID is identifier of pet and is auto generated follows the format "P00000" - starting with letter 'P' and 5 digit characters, where 5 digital characters is generated by get size of list of pets + 1.
Implement Comparable interface to compare pets by Nickname in ascending order.
Method getDescription() returns the description in lowercase.
b. Define class PetModel to manage a list of pets with the following methods (3 marks):
Read text file to load data for PetModel class - pets.txt is provided in src folder.
Method to search pet by gender.
Method to add a new pet to PetModel with no duplicate PetID.
c. Develop PetManagement project with a main class named Main.java - as the entry point -
to run the application (3 marks):
Main menu for application includes: Display all pets, Add new pet, Search pet by gender,and Quit.
Display all pets sorted by nickname in ascending order.
Zoom
100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
proud_nation
Ngày thêm
Lượt xem
2,424
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192c_-_SU_2024_-_PE2_2579.webp
File size
97.7 KB
Dimensions
1145px x 802px

Share this media

Back
Bên trên Bottom