You are on page 1of 1

Problem Statement for Test Phase

You are required to write a Java program for a Pharmacy or medical store. You
should create two classes named as Medicine and Antibiotics; where Antibiotics
(child class) will inherit from Medicines class (base class). The attributes of
Medicine class will include information including name, price, manufacturer,
disease, and type (like injection, tablet, syrup, etc.). The attributes of Antibiotics
class will include generation (like first, second, third or fourth), and reaction etc.
You are required to take information about Antibiotics from user through a
Graphical User Interface. After that, this information will be stored in a database
(use any database of your choice). The program will prompt user if he/she wants to
enter more data. At the end, your program should display all the information of
Antibiotics stored in database in the form of table. Also, make sure that exceptions
are properly managed in the program.

Remember:

You should use GUI / forms for Input and output of the program (in case of Java
app).

Your program should not accept empty or invalid input for each field.

Your program should handle exceptions properly.

There should be no syntax as well as logical errors in your program.

Note: You should attempt this problem by covering the topics of Test phase.

You might also like