java programming lab session planner for r13 jntuh

Upload: gouse1210

Post on 02-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Java Programming Lab Session Planner for R13 JNTUH

    1/2

    SESSION PLANNER

    Subject:JAVA PROGRAMMING

    Branch: II CSE-D

    Academic Year: 2014-2015Faculty: Sheikh Gouse

    Batch I

    Exp.No

    PROGRAMS/WUsed

    DatePlanne

    d

    DateConducted

    WEEK-1

    Develop an applet that displays a simple message. NetBeans IDE /

    Eclipse

    WEEK-2

    Develop an applet that receives an integer in one text field,

    and computes its factorial Value and returns it in another textfield, when the button named Compute is clicked.

    NetBeans IDE /Eclipse

    WEEK-3

    rite a program that creates a user interface to performinteger divisions. !he user enters two numbers in the

    textfields, "um# and "um$. !he division of "um# and

    "um$ is displayed in the %esult field when the Divide buttonis clicked. &f "um# or "um$ were not an integer, the program

    would throw a "umber'ormat(xception. &f "um$ were )ero,

    the program would throw an *rithmetic(xception. Displaythe exception in a message dialog box.

    NetBeans IDE /Eclipse

    WEEK-4

    rite a +ava program that simulates a traffic light. !he

    program lets the user select one of three lights red, yellow, orgreen with radio buttons. -n selecting a button, an

    appropriate message with top or %eady or /o should

    appear above the buttons in selected color. &nitially there is nomessage shown.

    NetBeans IDE /Eclipse

    WEEK-

    5

    rite a 0ava program to create an abstract class named hape

    that contains two integers and an empty method namedprint*rea12. 3rovide three classes named %ectangle, !riangle

    and Circle such that each one of the classes extends the classhape. (ach one of the classes contains only the method

    print*rea12 that prints the area of the given shape.

    NetBeans IDE /Eclipse

  • 8/10/2019 Java Programming Lab Session Planner for R13 JNTUH

    2/2

    WEEK-6

    rite a +ava program that implements a multi4thread

    application that has three threads. 'irst thread generates

    random integer every # second and if the value is even,second thread computes the s5uare of the number and prints.

    &f the value is odd, the third thread will print the value of

    cube of the number.

    NetBeans IDE /Eclipse

    WEEK-7

    rite a +ava program that implements a multi4threadapplication that has three threads. 'irst thread generates

    random integer every # second and if the value is even,

    second thread computes the s5uare of the number and prints.&f the value is odd, the third thread will print the value of

    cube of the number.

    NetBeans IDE /Eclipse

    WEEK-8

    rite a +ava program that connects to a database using +D6C

    and does add, delete, modify and retrieve operations.

    NetBeans IDE /Eclipse

    WEEK-9

    uppose that a table named !able.txt is stored in a text file.!he first line in the file is the header, and the remaining lines

    correspond to rows in the table. !he elements are separated

    by commas. rite a 0ava program to display the table using7abels in /rid 7ayout.

    NetBeans IDE /

    Eclipse

    WEEK-10

    rite a +ava program that handles all mouse events and

    shows the event name at the center of the window when a

    mouse event is fired 18se *dapter classes2.

    NetBeans IDE /Eclipse

    WEEK-11

    rite a +ava program that loads names and phone numbersfrom a text file where the data is organi9ed as one line per

    record and each field in a record are separated by a tab 1:t2. &t

    takes a name or phone number as input and prints thecorresponding other value from the hash table 1hint use hash

    tables2.

    NetBeans IDE /Eclipse

    WEEK-12

    &mplement the above program with database instead of a text

    file.

    NetBeans IDE /Eclipse

    WEEK-13

    rite a +ava program that takes tab separated data 1one

    record per line2 from a text file and inserts them into adatabase.

    NetBeans IDE /Eclipse

    WEEK-14

    rite a +ava program that prints the meta4data of a giventable.

    NetBeans IDE /Eclipse