Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

need in java please ASSIGNMENT 3 (INHERITANCE AND POLYMORHISM) 2-3 PERSON / GROUP WEEK 9 (17th DEC 2021) ABC Bookstore started its operation by selling

need in java please image text in transcribed

ASSIGNMENT 3 (INHERITANCE AND POLYMORHISM) 2-3 PERSON / GROUP WEEK 9 (17th DEC 2021) ABC Bookstore started its operation by selling physical and digital books. Each book has its ISBN, title, and quantity. The company is planning to develop an application that can calculate an estimate price of books to forecast the profit. Estimated price for digital books depending on the size of memory (in kilobyte) consumed. A 10% discount is given to all digital books for every purchase on 22 July annually in conjunction with digital awareness day. Estimated price of physical books is related to the number of pages and book's hardcover. Bring - therg Bong Sringe Bring Smit +40.com Pricele Physical De tay Sring roting . De Sting Sting Day Bring Smg Dijual.com - Sen . Depok Sanging Book String ng titled * Die Song estate Sim do bola + Plysacking Syng De Book Sringering it be est toute Sing, Sing Write a complete class definition according to information given in UML template of each class that shown in the above diagram. The superclass Book is an abstract class that have an abstract method named estimatePrice(). Physical Book and DigitalBook are the two subclasses that under Book as a superclass. Date class is an inner class (composite) for Digital Book as an outer class. The definition of method estimated Price for both subclasses are based on the information given in the following tables: Size of memory (kilobyte) Charge (RM) Less than 200 30.00 200 - 500 100.00 Every additional 30 kilobyte after 500 3.00 * 10% discount for purchases on 22d July Example date formatting is 22072021 (DayMonth Year). 30.00 Number of pages Charge (RM) Less than 100 100 - 200 60.00 Every additional 30 pages after 200 5.00 *Extra charge is RM 10.00 for hardcover. Write the complete application program that can do the following tasks. 1. Declare an array of object to store 100 objects of Book. ii. Using the sentinel concept, read the data until the user says no longer to read the data ii. Count and display the total number for each Digital and Physical book stored iv. Calculate and display the total of estimated price of all purchases on 22 July. v. Count and display the number of books that has hardcover. vi. Display the information about every hardcover book. ASSIGNMENT 3 (INHERITANCE AND POLYMORHISM) 2-3 PERSON / GROUP WEEK 9 (17th DEC 2021) ABC Bookstore started its operation by selling physical and digital books. Each book has its ISBN, title, and quantity. The company is planning to develop an application that can calculate an estimate price of books to forecast the profit. Estimated price for digital books depending on the size of memory (in kilobyte) consumed. A 10% discount is given to all digital books for every purchase on 22 July annually in conjunction with digital awareness day. Estimated price of physical books is related to the number of pages and book's hardcover. Bring - therg Bong Sringe Bring Smit +40.com Pricele Physical De tay Sring roting . De Sting Sting Day Bring Smg Dijual.com - Sen . Depok Sanging Book String ng titled * Die Song estate Sim do bola + Plysacking Syng De Book Sringering it be est toute Sing, Sing Write a complete class definition according to information given in UML template of each class that shown in the above diagram. The superclass Book is an abstract class that have an abstract method named estimatePrice(). Physical Book and DigitalBook are the two subclasses that under Book as a superclass. Date class is an inner class (composite) for Digital Book as an outer class. The definition of method estimated Price for both subclasses are based on the information given in the following tables: Size of memory (kilobyte) Charge (RM) Less than 200 30.00 200 - 500 100.00 Every additional 30 kilobyte after 500 3.00 * 10% discount for purchases on 22d July Example date formatting is 22072021 (DayMonth Year). 30.00 Number of pages Charge (RM) Less than 100 100 - 200 60.00 Every additional 30 pages after 200 5.00 *Extra charge is RM 10.00 for hardcover. Write the complete application program that can do the following tasks. 1. Declare an array of object to store 100 objects of Book. ii. Using the sentinel concept, read the data until the user says no longer to read the data ii. Count and display the total number for each Digital and Physical book stored iv. Calculate and display the total of estimated price of all purchases on 22 July. v. Count and display the number of books that has hardcover. vi. Display the information about every hardcover book

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students explore these related Databases questions

Question

=+management system of the MNE?

Answered: 3 weeks ago