Write a c program to print the reverse of a given number. CSE January 12, 2026 #include <stdio.h> int main() { int num, reversed = 0, remainder; printf("Enter a number: "); scanf("... Continue Reading
Write a Java program that correctly implements the producer – consumer problem using the concept of inter thread communication. CSE January 09, 2026 import java.util.LinkedList; import java.util.Queue; import java.util.Random; public class ProducerConsumerProblem { public static void... Continue Reading
Write a Java program that implements a multi-thread application that has three threads. First thread generates a random integer every 1 second and if the value is even, the second thread computes the square of the number and prints. If the value is odd, the third thread will print the value of the cube of the number. CSE January 09, 2026 import java.util.Random; public class MultiThreadNumberProcessor { // Shared container class to hold the generated number and manage sy... Continue Reading
Write a Java program for the following: Create a doubly linked list of elements. Delete a given element from the above list. Display the contents of the list after deletion. CSE January 09, 2026public class DoublyLinkedList { // Node definition class Node { int data; Node prev; Node next; Node... Continue Reading
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. CSE January 09, 2026 import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class SimpleCalcul... Continue Reading
Implementation of K-Means Clustering - Java CSE January 04, 2026 public class Record { private final String description; private final Map<String, Double> features; // constructor, gette... Continue Reading
Implementation of K-Means Clustering - Python CSE January 04, 2026 import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.datasets import make_blobs import numpy as np # 1. Generate... Continue Reading
Create an xml for the bookstore. Validate the same using both DTD and XSD. CSE January 03, 20261. Bookstore XML Document ( bookstore.xml ) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE bookstore SYSTEM ... Continue Reading
generate electricity bill in python program CSE January 03, 2026 def calculate_electricity_bill(units): """ Calculates the electricity bill based on tiered unit charges. Args: ... Continue Reading
generate electricity bill in c program CSE January 03, 2026 #include <stdio.h> #include <string.h> // Required for string operations if you expand customer details int main() { int un... Continue Reading
distance travelled by an object in c program CSE January 03, 2026 #include <stdio.h> int main() { // Declare variables for speed, time, and distance float speed, time, distance; // Prompt... Continue Reading
Area of a triangle using Heron’s formula in C CSE January 02, 2026 #include <stdio.h> #include <math.h> int main() { double side1, side2, side3, s, area; // Input the lengths of the side... Continue Reading
Finding compound interest in C CSE January 02, 2026 #include <stdio.h> #include <math.h> int main() { double principal, rate, time, amount, compound_interest; // Input pri... Continue Reading