About Me

header ads

Programming Using Java Lab (1BECL307D)

Programming Using Java Lab

Course Code 1BECL307D 
Scheme 2025
Type of Course Ability Enhancement Course (Laboratory)
Semester III
Teaching Hours/Week (L :T : P) 0:0: 2 
CIE Marks 50
Total Hours of Pedagogy (L :T:P:SL&TW) 0: 0:28:2 
SEE Marks 50
Credits 1 
Total Marks 100
Type of Examination Practical  
Exam Hours 3



SET OF EXPERIMENTS

Any open-source tool can be used.

1. Write a JAVA program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a, b, c and use the quadratic formula.

2. Write a JAVA program to implement 555 Timer Frequency Calculator

3. Demonstrate the following operations and sign extension with Java programs (i) << (ii) >> (iii) >>>

4. Create a JAVA class called AC power with the following details as variables within it.

 Voltage

 Current

 Phase angle

Write a JAVA program to create power objects and print the voltage, current, active power, apparent power, reactive power, instantaneous power, and power factor of these objects with suitable headings.

5. Write a JAVA program to implement ADC Bit-Resolution Quantizer

6. Design a super class called Staff with details as Staff Id, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical (skills), and Contract (period). Write a JAVA program to read and display at least 3 staff objects of all three categories.

7. Write a JAVA Program to Simulate a Multi-Waveform Function Generator using Runtime Polymorphism

8. Write a Java program that implements Quick sort algorithm for sorting a list of names in ascending order.

9. Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the +, -, *, % operations. Add a text field to display the result. Handle any possible exceptions like divided by zero.

10. Write a Java Program that simulates a Traffic Light. The program lets the use select one of three lights: red, yellow Green with radio buttons. On selecting radio button, an appropriate message with “stop” or “Ready” or “GO” should appear above the button in selected color. Initially, there is no message shown

11. Write a JAVA program to demonstrate Hardware Isolation and Signal Access Control using Java Packages

12. Write a Java program that creates three threads. First thread displays “Good Morning” everyone second, the second thread displays “Hello” every two seconds and the third thread displays “Welcome” every three seconds.



Suggested Learning Resources: 

Text books:

1. Java: The Complete Reference, Twelfth Edition, by Herbert Schildt, November 2021, McGraw-Hill, ISBN: 9781260463422

2. Programming with Java, 6th Edition, by E Balagurusamy, Mar-2019, McGraw Hill Education, ISBN: 9789353162337.

3. Thinking in Java, Fourth Edition, by Bruce Eckel, Prentice Hall, 2006 (https://sd.blackball.lv/library/thinking_in_java_4th_edition.pdf)

4. Herbert Schildt, Java The Complete Reference, 7th Edition, Tata McGraw Hill, 2007.