Content PRO192: OOP in Java
Social constructive learning
File petdog.txt Description
1; Poodle Information in a line: 2; Bull pháp <ID; pet name > 3; Chó Phú Quốc 4; Phốc sóc
File dog.txt Description
1876;2;zuzi;xám; cái; 300; Chó Bull Pháp Information of a line:
(French Bulldog) là giống chó dễ thương
nhất trong các loại chó cảnh ……… <ID; pet ID; dog name;dog color;dog gender;price; describe>
Dogs for sale needs a Java console application in which operations must be supported:
- List all PetDogs
- Add a new PetDog
- Remove a PetDog by ID
- Save PetDogs to petdog.txt file
- List all Dogs
- Add a new Dog
- Remove a dog by ID
- Update a dog based on its ID
- Save Dogs to dog.txt file
- List all dogs in ascending order of dog names
- List all dogs in ascending order of dog prices
- Search dogs based on its color
- Search dogs based on its prices, from price… to price..
- .....
Constraints on PetDogs: Pet dog ID can not be duplicated. The pet dog name can not be blank.
Constraints on Dogs: Dog ID can not be duplicated and random 4-digit number. Color can not be blank.
- Tạo các lớp thực thể: PetDog, Dog. Tạo Interface cho các chức năng của bài toán
- Tạo lớp đọc ghi file, tìm dữ liệu cho 2 file
- Tạo Lớp cài đặt các chức năng liên quan đến danh sách đối tượng lớp PetDog
- Tạo Lớp cài đặt các chức năng liên quan đến danh sách đối tượng lớp Dog
- Tạo menu + chạy các chức năng của chương trình