Answered step by step
Verified Expert Solution
Question
1 Approved Answer
q( b) compliet regading this questions C:/Users/Dell/Downloads/POP-COMP%2010017-fall-20-CW2(ASSMNT%20)-ALL-QP.docx V - + |A | MEC_AMO_TEM_035_02 Page 3 of Principles of Programming (COMP 10017) Fall-20- CW2 (Assignment) -
q( b) compliet regading this questions
C:/Users/Dell/Downloads/POP-COMP%2010017-fall-20-CW2(ASSMNT%20)-ALL-QP.docx V - + |A | MEC_AMO_TEM_035_02 Page 3 of Principles of Programming (COMP 10017) Fall-20- CW2 (Assignment) - All-QP b) Give your detailed reflection on array used in task 2(a) (15 Marks) + | A1 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 coples, 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. (15 Marks) Sample Input/Output: E II 54 F5 FB F7 FB F9 F10 F31 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started