Internship Assignment 5: Name: Sudeshna Acharyya Email
Internship Assignment 5: Name: Sudeshna Acharyya Email
Assignment 5
Name: Sudeshna Acharyya
Email: sudeshnaacharyya22@gmail.com
• While setting value for empDesig, the designation must have any of the following
values:
developer, tester, Lead or manager. If none of these values is matching then setter
method should display 'Invalid designation' error message.
• While setting value for empDept, the department must have any of the following
values: TTH, RCM, Digital, DevOps. If none of these values is matching then
setter method should display 'Invalid Dept' error message.
Develop a program that assists bookstore employees. For each book, the program
should track the book’s title, its price, its year of publication, and the author’s
name. Develop an appropriate Java Class. Create instances of the class to
represent these three books:
At times, the customer registration process changes, here are the guidelines:
• Admin may register customer by filling only ID, name and address details
• Admin may register customer by filling only ID and name
• Admin may register customer by filling all the details.
identifyMarks(float) method:
This method is used to set the marks of the student if the student has cleared in the
first chance itself, i.e. second chance is false. This method accepts the marks
scored by the student which must be set in the marks instance variable.
This method is used to set the marks of the student if the student has taken the
second chance i.e. second chance is true. This method accepts the marks scored by
the student in the first chance and second chance. The maximum of both these
marks must be identified and set in the marks instance variable.
Starter Class:
• ID
• Name
• Branch
• Score