Ipf PDF
Ipf PDF
"MEDIQUEUE"
Submitted to : Submitted By :
Mrs. Savita Saluja Name: Priyansh Kothari
I.P. Faculty Class: XII
Delhi Public School Section: C
Indore
CERTIFICATE OF COMPLETION
This is to certify that Priyansh Kothari of Class XII successfully
completed the project work on MediQueue 1.0 for Class XII Practical
Examination of AISSCE
Informatics Practices in the year 2016-17.
___________________
_________________________ ____________________
Signature(Principal)
Signature(Subject Teacher) Signature(Examiner)
ACKNOWLEDGEMENT
1
Steps to Run a Program
The following Java program is developed under
Linux using a text editor and the command line.
2
Language Structure
Class:
A class is a template that describes the data and
behavior associated with an instance of that class.
A class is defined by the class keyword and must
start with a capital letter.
Object:
An object is an instance of a class.The object is the
real element which has data and can perform
actions. Each object is created based on the class
definition.
Package:
Java groups classes into functional packages.
Packages are typically used to group classes into
logical units. Ex: java.util.*
Inheritance:
Inheritance is the way a class inherits the behavior
and data definitions of another class. In this case
this class is called a subclass. Another common
phrase is that a class extends another class.
It is of 3 types: Single, Multilevel & Hierarchical.
3
Exceptions:
In Java an exception is an event to indicate an
error during the runtime of an application.
So this disrupts the usual flow of the application's
instructions.
In general exceptions are thrown up in the call
hierarchy until they get catched.
Abstraction:
Showing of only essential properties and hiding
any background details. It is achieved in Java by
using interface and abstract class.
4
Interfaces
Interface is a type similar to a class and is defined
via the interface keyword.
5
Variables and Methods
Variable:
Variables allow the Java program to store values
during the runtime of the program.
Instance Variable:
Instance variable is associated with an instance of
the class. Access works over these objects.
Local Variable:
Local /Stack variable declarations cannot have
access modifiers.
Method:
A method is a block of code with parameters and a
return value. It can be called on the object.
Main method:
A public static method with the following signature
can be used to start a Java application. Such a
method is typically called main method.
6
Constructor:
A class contains constructors that are invoked to
create objects based on the class definition.
Constructor declarations look like method
declarations except that they use the name of the
class and have no return type.
A class can have several constructors with different
parameters.
Each class must define at least one constructor.
7
Modifiers
There are three access modifiers keywords
available in Java: public, protected and private.
8
Statements
If-Else:
The if-else statement is a control flow statement.
A block of code is only executed when the test
specified by the if part evaluates to true.
The optional else block is executed when the if part
evaluates to false.
Switch:
The switch statement can be used to handle several
alternatives if they are based on the same constant
value.
Boolean Operations:
Used to compare two values and only offer a result
as true or false. Contains Short Circuit Methods
which means that they terminate once the result of
an evaluation is already clear
9
Loops
For-Loop:
A for loop is a repetition control structure that
allows you to write a block of code which is executed
a specific number of times.
While-Loop:
A while loop is a repetition control structure that
allows you to write a block of code which is executed
until a specific condition evaluates to false.
Do-While:
The do-while loop is similar to the while loop, with
the exception that the condition is checked after the
execution.
10
Arrays
An array is a container object that holds a fixed
number of values of a single type.
11
Datatypes
Datatypes are the entities that tell the compiler
that what variable will hold which kind of values.
12
Type Casting
It is assigning a value of one data type to another
type either from lower precision to higher or vice
versa. It is of two types:-
13
Terminologies
Object Oriented Programming
Object Oriented means we organize our software as
a combination of different types of objects that
incorporates both data and behaviour in
programming in Java.
Keywords:
Keywords are the reserved words which convey a
special meaning to a language compiler. They can
not be used for any other purpose like function
name, variable name or object names.
Comments:
These are statements which are ignored by the
Java compiler and increase the readability of a
program. These are used to state the purpose of
the code or methods used in a program.
Wrapper Class:
It is used to convert primitive data type into
reference data type and vice versa. It is of 8 types:-
14
MediQueue
MediQueue a GUI-based clinic queue management
JAVA software for medical clinics.
15
Below is the code for its Main class.
Code:
16
It is secured by a Login Form, so It can't be accessed
by anyone outside the two-users.
It can be configured to the local host or any other IP
address/server.
The Port, Database, User & Password can be
customized as per requirements.
17
Code: Connect Button
18
It connects to MySQL with JDBC after verifying the
credentials.
19
Code: Submit Button
20
The Remove button simply removes a patient when
a record is selected. The database entry is not deleted.
Code:
21
Once removed, a record if selected to be removed
will display an error.
Code:
22
Multiple entries can be done in this manner. There
is no limit except the capability of MySQL.
Now the Doctor's Panel has some more interesting
features suited to his needs.
It is a bit identical to the Receptionist's Panel. It
has some distict features.
It can mark an entry as 'Completed' which is then
also updated on the Receptionist's Panel via a
refresh mandated by Timer class in Java. A
separate button is not required and their is a time
delay of 10 sec between each refresh.
23
Code:
24
Code: Complete Button
25
If an entry is already removed from the Reception
Panel and is being completed in the Doctor's Panel,
then an error will be displayed.
MySQL
It has an important role in managing the records. It
has the following structure:
26
Bibliography
The following were utterly helpful in this project:
27