Module 1 - Lab Exercise On JDBC: Name Year Subject
Module 1 - Lab Exercise On JDBC: Name Year Subject
Module 1 - Lab Exercise On JDBC: Name Year Subject
Add Record :
When the user input is 1, the user should be asked to enter the following details one by
one (again using Scanner).
Employee ID
Employee’s First Name
Employee’s last Name
Join Date
Department
18PE04/18FE04/18SE04 – Advanced Java Programming
Designation
Basic Salary
The data entered by the user should be stored in database table
Modify Record:
If the user selects option 2, Modify Record, the user should be asked to enter the
employee no. whose data he needs to modify. When the user enters the employee no.,
the application should display the employee’s details like employee no., designation,
department and basic salary. If the employee no. is not present, it should display
appropriate error message. The user should be able to change only the Designation and
Basic Salary.
Delete Record:
When the user selects option 3, Delete Record, the application should ask him to enter
the employee no. and if the employee no. does not exist, it should display appropriate
error message. If the employee no. exists, the record should be deleted.
Display One Record
When the user selects option 4, Display One Record, the application should ask him to
enter the employee no. and if the employee no. does not exist, it should display
appropriate error message. If the employee no. exists, it should display all the details of
this employee.
Display all Records
When the user selects option 5, Display all Records, the application should display all the
records.
Exit
When the user wants to stop using this application, he will select option 6 and he should
be allowed to exit from this system. It should display a message on the system “Thank you
for using this application”