Question: 2) 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:

 2) a) Write a java program using array concept and if-else

2) 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

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!