Question: Write a Java program to design a Book store system. In a bookstore system, a Liberian need to store the quantity of each book. (

 Write a Java program to design a Book store system. In

Write a Java program to design a Book store system. In a bookstore system, a Liberian need to store the quantity of each book. ( * To do that you should perform the following. 1. Declare and initialize an array to store the book name. 2. Declare and initialize an array to store the price of each book. 3. Declare an array to store the quantity of each book. 4. Read the elements of array quantity. 5. Calculate the total price for each book which is equal to the price multiply by quantity, then store the result in a new array name, it , if total price greater than 1500 there is discount by 20% of the total price) 6. Find and print the book name with highest price 7. Print the book name and total price for all books with total price more than 2000. 8. Print the result as shown in figure 1 Output - gwq2 (run) run: Input the quantity for each book 5 4 6 a 9 2 The book name with highest price is PL/SQL All books with total price greater than 2000 Book name = Advanced database total price= 2880.0 Book name = Oracle total price= 5040.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!