Tolder alPractical" and upload the file. Q1. Draw the class diagram and type the program in JCreator using java for the following scenario and develop a driver class to test your construction; i. Create a Library class with the following attributes: book Id, book name and book cost. ii. Provide the following methods for this class: a. parametrized constructor b. setter and getter methods for book cost only. ii. Create a StudentMember class which inherits from Library class, with an attribute department.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
O Type the program in the computer using JCreator
Save the progrm in Z: drive in a folder “FinalPractical" and upload the file.
Q1.
Draw the class diagram and type the program in JCreator using java for the
following scenario and develop a driver class to test your construction;
i. Create a lbrary class with the following attributes:
book Id, book name and book cost.
ii. Provide the following methods for this class:
a. parametrized constructor
b. setter and getter methods for book cost only.
ii. Create a StudentMember class which inherits from Library class, with an
attribute department.
iv. Provide the following methods for this class:
a. parametrized constructor.
b. setter and getter methods for department attribute.
C. A method named checkBookQty() which will return the number of books
based on the following table,
Book Quantity
Department
IT
BSD
4
Engg
d. Display() method to display all details with total cost.
V. Create an ITStaffMember class which inherits from Library class, with an
attribute specialization.
0.
vi. Provide the following methods for this ciass:
0.5
a. parametrized constructor,
b. A method named checkBookQty() which will return the number of books
1.0
based on the following table,
Specialization
Network
Software Engg
Database
Book Quantity
4
vii, Create an IssueBook class which contains the main method
StudentMember("B111","Programming Concepts", 23.750, "IT")
ITStaffMember("N111","Networking Fundamentals", 7.500,"Network")
1.0
viii. Print details of the Student Member and IT Staff Member with all details.
0.5
Transcribed Image Text:O Type the program in the computer using JCreator Save the progrm in Z: drive in a folder “FinalPractical" and upload the file. Q1. Draw the class diagram and type the program in JCreator using java for the following scenario and develop a driver class to test your construction; i. Create a lbrary class with the following attributes: book Id, book name and book cost. ii. Provide the following methods for this class: a. parametrized constructor b. setter and getter methods for book cost only. ii. Create a StudentMember class which inherits from Library class, with an attribute department. iv. Provide the following methods for this class: a. parametrized constructor. b. setter and getter methods for department attribute. C. A method named checkBookQty() which will return the number of books based on the following table, Book Quantity Department IT BSD 4 Engg d. Display() method to display all details with total cost. V. Create an ITStaffMember class which inherits from Library class, with an attribute specialization. 0. vi. Provide the following methods for this ciass: 0.5 a. parametrized constructor, b. A method named checkBookQty() which will return the number of books 1.0 based on the following table, Specialization Network Software Engg Database Book Quantity 4 vii, Create an IssueBook class which contains the main method StudentMember("B111","Programming Concepts", 23.750, "IT") ITStaffMember("N111","Networking Fundamentals", 7.500,"Network") 1.0 viii. Print details of the Student Member and IT Staff Member with all details. 0.5
Expert Solution
steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education