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

read my recommendation I want it by using do while loop and it should be in two class one for magazine and the other for

read my recommendation

I want it by using do while loop and it should be in two class one for magazine and the other for Library which has the method

image text in transcribed

I want same output

image text in transcribed

image text in transcribed

a) Write a java program using array concept and if-else statement to automate Library as per following scenario to perform the operation given below: 1. To Stock Entry. 2. To Display current stock and issue 3. To Display the magazine stock details 1. Stock Entry: Write a code to read magazine code, magazine name, author name and total number of magazines using array concept. 2. Display current stock: Write a code to issue the magazine as per its availability by checking against magazine code. If it is available the program should display the message "Your requested magazine is available" and ask "How many copies you want?" Then number of required copies should be read from the keyboard. After checking the existing copies of the magazines with copies requested. If it is not more than existing number of copies, issue the magazines and this count should be deducted from the existing stock and update "existing copies" with message "Requested number of copies are issued. Otherwise display "the number of requested copies are not available in stocks, please visit later". Finally display the details of issued magazines. 3. collect magazines : Write a code to display the existing magazines stock details. LIBRARAY SECTIONS / OPTIONS 1. To Stock Entry 2. To Display current stock and issue 3. To Display the magazines stock details Please choice one option :: 1 Enter how many magazines you want to be insert ? 2 Please enter magazine Code 1 1 Please enter magazine Name 1 SKY Please enter Author Name 1 Jon Please enter Number of magazines 8 Please enter magazine Code 2 2 Please enter magazine Name 2 JAVA Please enter Author Name 2 Tom Please enter Number of magazines 4 Do you want to continue, please enter y or N Y Please choice one option :: 2 Details of issued magazine Magazine Code Magazine Name Author Name Current Copies 1 SKY Jon 8 2 JAVA Tom Y 1 5 Do you want to continue, please enter y or N Please choice one option :: 3 Please enter how many magazines you want to collect from auto Library 2 Please enter your magazine code 1 to be collect Your requested magazine 1 is available How many copies you want Requested number of copies are issued Please enter your magazine code 2 to be collect 2 Your requested magazine 2 is available How many copies you want 5 Requested number of copies not available, please visit later *****Issued Magazine Details******************** magazine Code magazine Name Author Name Issued copies SKY 2 JAMA Tom ***** 1 Jon 5 Do you want to continue, please enter y or N N Press any key to continue

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students explore these related Databases questions