Posts

Create a java Applet program of Calculator

 import java.applet.*; import java.awt.*; import java.awt.event.*; public class Calculator extends Applet implements ActionListener {     TextField t1;     Button button1,button2,button3,button4,button5,button6,button7,button8,button9,button0;     Button add,sub,mul,div, eql, dot;     String msg="",tmp;     double a, b;     public void init()     {         setLayout(null);         t1=new TextField(20);         button1=new Button("1");         button2=new Button("2");         button3=new Button("3");         button4=new Button("4");         button5=new Button("5");         button6=new Button("6");         button7=new Button("7");         button8=new Button("8");         button9=new Button("9"); ...

Q. Wap to sort an array using Bubble Sort

public class bubble {     public static void main(String[] args)     {         int[] arr = {16,45,66,52,78,96,77,71,79,72};         int n = arr.length;         System.out.print("Array : ");         for(int i = 0; i < n; i++) {             System.out.print(arr[i] + " ");         }         System.out.println();         for(int i = 0; i < n-1; i++) {             for(int j = 0; j < n-i-1; j++)             {                 if(arr[j] > arr[j+1])                 {                     int temp = arr[j];                     arr[j] = arr[j+1];     ...

Completed Certification from J.P. Morgan - Software Engineering Job Simulation

Image
 J.P. Morgan Software Engineering Virtual Experience on Forage - September 2023  * Set up a local dev environment by downloading the necessary files, tools and    dependencies.  * Fixed broken files in the repository to make web application output    correctly.  * Used JPMorgan Chase’s open source library called Perspective to generate a    live graph that displays a data feed in a clear and visually appealing way    for traders to monitor.

Student Registration form using PHP

Image
 Design Screensort:  code : < html > < head > < style > p { color : red ;} </ style > </ head > < Center > < h1 > Student Registration </ h1 > </ Center > < h1 > Enter the student details </ h1 > < body > < form method = "post" > < p > Enter Name </ p > < input type = "text" name = "name" /> < p > Enter registration ID </ p > < input type "text" name = "Number" /> < p > Enter the college ID </ p > < input type = "text" name = "cid" /> < p > course Type </ p > < input type = "radio" name = "course" value = "UG" > UG < input type = "radio" name = "course" value = "PG" > PG < p > select gender </ P > < input type = "radio" name = "gender" ...

Wap to Use Increment And Decrement Operator In Java

 class iandc { public static void main(String[] arg) { int n=10; System.out.println("Before any Opertaion n="+n); System.out.println("After post increment n="+n++); System.out.println("After Pre increment n="+ ++n); System.out.println("After post Decrement n="+n--); System.out.println("After pre decrement n="+ --n); } }

Wap to use Ternary Operator in Java

 import java.util.Scanner; class Ternary { public static void main(String []arg) { Scanner scanner = new Scanner(System.in); int feb; System.out.print("Enter the no of days in February month:"); feb =scanner.nextInt(); System.out.println((feb==28) ? "The is a Leap Year" : "This is not a Leap Year"); } }

Wap to use Relational Operator in Java

 class Relational { public static void main (String []arg) { int a=10,b=20; System.out.println("Variable a="+a+"and b="+b); System.out.println("The Below statement(a==b) is false"); System.out.println(a==b); System.out.println("The Below statement(a!=b) is false"); System.out.println(a!=b); System.out.println("The Below statement(a>b) is false"); System.out.println(a>b); System.out.println("The Below statement(a<b) is false"); System.out.println(a<b); System.out.println("The Below statement(a<=b) is false"); System.out.println(a<=b); System.out.println("The Below statement(a>=b) is false"); System.out.println(a>=b); } }