Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Principles of Programming (COMP 10017) Fall - 20- CW2 (Assignment) - All - OP 2) a) Write a java program using array concept and if-else

image text in transcribed
Principles of Programming (COMP 10017) Fall - 20- CW2 (Assignment) - All - OP 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 magarine as per its availability by checking against magazine code 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 coples, issue the magarines and this count should be deducted from the existing stock and update existing coples with message "Requested number of copies are Issued". Otherwise display the number of requested copies are not available in stocksplease visit later". Finally display the details of issued magazines collect magazines Write a code to display the existing magazines stock details SOS 0 DELL F4 F5 F6 PI F7 F8 FO F12 Pulso Delete N A & $ 4 E % 50 Bacispece 6 1 7 Y 8A RL TY Y U P

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

Factors Affecting Conflict

Answered: 1 week ago

Question

Describe the factors that lead to productive conflict

Answered: 1 week ago

Question

Understanding Conflict Conflict Triggers

Answered: 1 week ago