Skip to content

Latest commit

 

History

History

List Of Programs and Output for Experiment 8.

simple_calculator.java - Write a Java program that works as a simple calculator. Arrange Buttons for digits and the + - * % operations properly. Add a text field to display the result. Handle any possible exceptions like divide by zero. Use Java Swing. **

Calulator.mp4

TrafficLight.java - Write a Java program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio button is selected, the light is turned on, and only one light can be on at a time. No light is on when the program starts.

Traffic.Signal.mp4

mouse_events.java - Write a Java program for handling mouse events.

Mouse.mp4

key_events.java - Write a Java program for handling key events using Adapter classes (general).

Key.mp4

draw_shapes.java - Write a Java program that allows the user to draw lines, rectangles and ovals.

draw_shape

WavePrint.java - Write a Java Swing program to print a wave form on the output screen.

Wave Pattern

student.java - Write a program to accept rollno, name, CGPA of “n” students and store the data to a database using JDBC connectivity. Display the list of students having CGPA greater than 7. (Use MySQL /PostgreSQL).

Enter How Many Student : 2

        Details of Student 1

Enter Roll No: 101
Enter Name: Akku
Enter CGPA: 9

        Details of Student 2

Enter Roll No: 102
Enter Name: Addu
Enter CGPA: 6

         Students who have CGPA greater than 7
Roll no : 101    Name : Akku     CGPA : 9.0
Click 1 to clear the table or else click 0 to continue
0