Page 1 of 1
Directions: Create a Java Project that exhibits the following properties. 1) Create a package in the Library Management
Posted: Tue Apr 12, 2022 10:21 am
by answerhappygod

- Directions Create A Java Project That Exhibits The Following Properties 1 Create A Package In The Library Management 1 (57.26 KiB) Viewed 30 times

- Directions Create A Java Project That Exhibits The Following Properties 1 Create A Package In The Library Management 2 (57.26 KiB) Viewed 30 times

- Directions Create A Java Project That Exhibits The Following Properties 1 Create A Package In The Library Management 3 (73.89 KiB) Viewed 30 times

- Directions Create A Java Project That Exhibits The Following Properties 1 Create A Package In The Library Management 4 (52.41 KiB) Viewed 30 times
Directions: Create a Java Project that exhibits the following properties. 1) Create a package in the Library Management System. Name the package sample1 2.) Create the following classes Supplier • Book • Author • BookAcquisitionRunner 3.) Declare the following attributes. Class Attributes Class Attribute Name Data Initial Access Type Value Modifiers supplierld int private supplierName String private Supplier supplierAddress String private supplier Telephone Number long ivate bookld short public book Title String public Book bookPrice double public bookCategory char public bookAuthorLastname String protected Author bookAuthor Firstname String protected BookAquisitionRunner book Quantity byte public discountedBookPrice Float public orderBook boolean false public totalPrice float public
4.) Instantiate the Supplier, Book, and Author classes in 5.) Overwrite the initial value of orderBook to true to accept values for the above-listed attributes. 6.) Accept values of the attributes in String type using Scanner class and methods that are appropriate for each type attribute. 7.) Accept values of the numerical type of attributes using InputStreamReader and Buffered Reader classes. 8.) Refer the table below for discounts on bookPrice. Use conditional operator ?; to determine the discount. Book Class Book Quantity Discount >=4 25% >=6 50% 9.) Use appropriate logical operators to determine additional discounts on book price. Refer to the conditions in the provided table below.
Discount Book Class Book Quantity The same book and author The same category and author 10% 20% 10.) Compute for the following: totalPrice = book Quantity * (bookPrice discountedBookPrice) 11.) Typecast book Quantity to int and totalPrice to double. 12.) Display the values in the editor's console. Save and compile your classes.