Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago