PRO192_-_PE1_-_FA_2024_2927.webp
golden_swallow

PRO192_-_PE1_-_FA_2024_2927.webp

Develop Magazine Management System OOP application with the following components and requirements.
Requirements
1. (2 marks) Define a class Magazine with the following attributes and methods
Attributes:
String title: The title of the magazine.
String publisher: The publisher of the magazine.
Date publishDate: The date the magazine was published (in the format dd/MM/yyyy).
int issueNumber: The issue number of the magazine.
int pages: The number of pages in the magazine.
Methods:
Constructors, get/set() methods, and toString().
getAge(): Calculate and return the age of the magazine in years, based on the publish date..
2.
(3.5 marks) Define the MagazineList class contain list of magazines and the following methods:
a. Read file "magazines_input.txt" and stores in List <Magazine> (if wrong data skip is not added to the list).
The format of the file "magazines_input.txt" is as follows and the magazines input.txt file is provided with this
exam.
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRO192_-_PE1_-_FA_2024_2927.webp
File size
203.7 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom