Reset
krishna calculator
krishna calculator
Project Info
Project Images
Project Code
×

krishna calculator

This is a scientific calculator; we can perform various types of calculations with it, such as arithmetic, temperature, root and square root, trigonometry, logarithmic values, powers, and increment and decrement operations.

Footer

×

krishna calculator

Footer

Simple Arithmetic Calculator
Simple Arithmetic Calculator
Project Info
Project Images
Project Code
×

Simple Arithmetic Calculator

This is a simple arithmetic calculator; the user can perform arithmetic operations.

Footer

×

Simple Arithmetic Calculator

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Frame1 extends JFrame
{
  JTextField t1=new JTextField();
  JButton b1=new JButton("0");
  JButton b2=new JButton("1");
  JButton b3=new JButton("2");
  JButton b4=new JButton("3");
  JButton b5=new JButton("4");
  JButton b6=new JButton("5");
  JButton b7=new JButton("6");
  JButton b8=new JButton("7");
  JButton b9=new JButton("8");
  JButton b10=new JButton("9");
  JButton b11=new JButton("+");
  JButton b12=new JButton("-");
  JButton b13=new JButton("X");
  JButton b14=new JButton("/");
  JButton b15=new JButton("=");
  JButton b16=new JButton("AC");
  JButton b17=new JButton(".");
  JButton b18=new JButton("X\u00B2");
  JButton b19=new JButton("X\u00B3");
  JButton b20=new JButton("log");
  JButton b21=new JButton("sin");
  JButton b22=new JButton("cos");
  JButton b23=new JButton("tan");
  JButton b24=new JButton("ceil");
  JButton b25=new JButton("floor");
  JButton b26=new JButton("rint");
  JButton b27=new JButton("abs");
  JButton b28=new JButton("max");
  JButton b29=new JButton("min");
  JButton b30=new JButton("\u221Ax");
  JButton b31=new JButton("\u221Bx");
  JButton b32=new JButton("1/x");
  JButton b33=new JButton("ON");
  JButton b34=new JButton("00");
  JButton b35=new JButton("BIN");


Frame1()
{
  
  setSize(450,600);
  setDefaultCloseOperation(3);
  setLayout(null);
  t1.setBounds(20,20,400,60);add(t1);
  t1.setBackground(new Color(255,255,255));
  t1.setFont(new Font("Arial",1,24));
  t1.setEditable(false);
  t1.setHorizontalAlignment(4);
  b1.setBounds(20,90,50,50);add(b1);
  b2.setBounds(80,90,50,50);add(b2);
  b3.setBounds(140,90,50,50);add(b3);
  b4.setBounds(200,90,50,50);add(b4);
  b5.setBounds(260,90,50,50);add(b5);
  b6.setBounds(20,150,50,50);add(b6);
  b7.setBounds(80,150,50,50);add(b7);
  b8.setBounds(140,150,50,50);add(b8);
  b9.setBounds(200,150,50,50);add(b9);
  b10.setBounds(260,150,50,50);add(b10);
  b11.setBounds(20,210,50,50);add(b11);
  b12.setBounds(80,210,50,50);add(b12);
  b13.setBounds(140,210,50,50);add(b13);
  b14.setBounds(200,210,50,50);add(b14);
  b15.setBounds(260,210,50,50);add(b15);
  b16.setBounds(320,90,70,50);add(b16);
  b17.setBounds(20,270,50,50);add(b17);
  b18.setBounds(80,270,50,50);add(b18);
  b17.setFont(new Font("Arial",1,30));
  b19.setBounds(140,270,50,50);add(b19);
  b20.setBounds(200,270,90,50);add(b20);
  b21.setBounds(320,150,70,50);add(b21);
  b22.setBounds(320,210,70,50);add(b22);
  b23.setBounds(305,270,85,50);add(b23);
  b24.setBounds(20,330,65,50);add(b24);
  b25.setBounds(95,330,65,50);add(b25);
  b26.setBounds(170,330,65,50);add(b26);
  b27.setBounds(245,330,65,50);add(b27);
  b28.setBounds(20,390,65,50);add(b28);
  b29.setBounds(95,390,65,50);add(b29);
  b30.setBounds(170,390,65,50);add(b30);
  b31.setBounds(245,390,65,50);add(b31);
  b32.setBounds(320,330,65,50);add(b32);
  b33.setBounds(320,390,65,50);add(b33);
  b34.setBounds(20,450,65,50);add(b34);
  b35.setBounds(95,450,70,50);add(b35);
  Font ff=new Font("arial",1,25);
  b1.setFont(ff);
  b2.setFont(ff);
  b3.setFont(ff);
  b4.setFont(ff);
  b5.setFont(ff);
  b6.setFont(ff);
  b7.setFont(ff);
  b8.setFont(ff);
  b9.setFont(ff);
  b10.setFont(ff);
  b11.setFont(ff);
  b12.setFont(ff);
  b13.setFont(new Font("arial",1,15));
  b14.setFont(ff);
  b15.setFont(ff);
  b18.setFont(new Font("arial",1,15));
  b19.setFont(new Font("arial",1,15));
  b30.setFont(new Font("arial",1,15));
  b34.setFont(ff);
  b21.setFont(new Font("arial",1,20));
  b22.setFont(new Font("arial",1,20));
  b23.setFont(new Font("arial",1,20));
  b16.setFont(new Font("arial",1,20));
  b24.setFont(new Font("arial",1,15));
  b25.setFont(new Font("arial",1,12));
  b26.setFont(new Font("arial",1,15));
  b27.setFont(new Font("arial",1,15));
  b28.setFont(new Font("arial",1,15));
  b29.setFont(new Font("arial",1,15));
  b33.setFont(new Font("arial",1,20));
  b35.setFont(new Font("arial",1,20));
 
  b1.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b2.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b3.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b4.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b5.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b6.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b7.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b8.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b9.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b10.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b11.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b12.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b13.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b14.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b15.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f2(e);
     }

  });
  b16.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f3(e);
     }

  });
  b17.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f1(e);
     }

  });
  b18.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f4(e);
     }

  });
  b19.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f5(e);
     }

  });
  b20.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f6(e);
     }

  });
  b21.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f7(e);
     }

  });
  b22.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f8(e);
     }

  });
  b23.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f9(e);
     }

  });
  b24.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f10(e);
     }

  });
  b25.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f11(e);
     }

  });
  b26.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f12(e);
     }

  });
  b27.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f13(e);
     }

  });
  b28.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f14(e);
     }

  });
  b29.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f15(e);
     }

  });
  b30.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f16(e);
     }

  });
  b31.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f17(e);
     }

  });
  b32.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f18(e);
     }

  });
  b33.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f19(e);
     }

  });
  b34.addActionListener(new ActionListener()
  {
     public void actionPerformed(ActionEvent e)
     {
         f20(e);
     }

  });


}
  void f1(ActionEvent e)
  {
      String s1=t1.getText();
      String s2=e.getActionCommand();
      t1.setText(s1+s2);
  }
  void f2(ActionEvent e)
  {
      String s=t1.getText();
      int p=s.indexOf("+");
      if(p>0)
      {
         String s1=s.substring(0,p);
         String s2=s.substring(p+1);
         double x=Double.parseDouble(s1);
         double y=Double.parseDouble(s2);
         double z=x+y;
         t1.setText(z+"");
      }
      int p1=s.indexOf("-");
      if(p1>0)
      {
         String s1=s.substring(0,p1);
         String s2=s.substring(p1+1);
         double x1=Double.parseDouble(s1);
         double y1=Double.parseDouble(s2);
         double z1=x1-y1;
         t1.setText(z1+"");
      }
      int p2=s.indexOf("X");
      if(p2>0)
      {
         String s1=s.substring(0,p2);
         String s2=s.substring(p2+1);
         double x2=Double.parseDouble(s1);
         double y2=Double.parseDouble(s2);
         double z2=x2*y2;
         t1.setText(z2+"");
      }
      int p3=s.indexOf("/");
      if(p3>0)
      {
         String s1=s.substring(0,p3);
         String s2=s.substring(p3+1);
         double x3=Double.parseDouble(s1);
         double y3=Double.parseDouble(s2);
         double z3=x3/y3;
         t1.setText(z3+"");
      }
  }
  void f3(ActionEvent e)
  {
     t1.setText(" ");
  }
  void f4(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.pow(x1,2);
     t1.setText(x5+"");
  }
  void f5(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.pow(x1,3);
     t1.setText(x5+"");
  }
  void f6(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.log10(x1);
     t1.setText(x5+"");
  }
  void f7(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double a=Math.toRadians(x1);
     double x5=Math.sin(a);
     t1.setText(x5+"");
  }
  void f8(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double a=Math.toRadians(x1);
     double x5=Math.cos(a);
     t1.setText(x5+"");
  }
  void f9(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double a=Math.toRadians(x1);
     double x5=Math.tan(a);
     t1.setText(x5+"");
  }
  void f10(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.ceil(x1);
     t1.setText(x5+"");
  }
  void f11(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.floor(x1);
     t1.setText(x5+"");
  }
  void f12(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.rint(x1);
     t1.setText(x5+"");
  }
  void f13(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.abs(x1);
     t1.setText(x5+"");
  }
  void f14(ActionEvent e)
  {
     String s1=t1.getText();
     String s2=e.getActionCommand();
     double x1=Double.parseDouble(s1);
     double x2=Double.parseDouble(s2);
     double x5=Math.max(x1,x2);
     t1.setText(x5+"");
  }
  void f15(ActionEvent e)
  {
     String s1=t1.getText();
     String s2=e.getActionCommand();
     double x1=Double.parseDouble(s1);
     double x2=Double.parseDouble(s2);
     double x5=Math.min(x1,x2);
     t1.setText(x5+"");
  }
  void f16(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.sqrt(x1);
     t1.setText(x5+"");
  }

  void f17(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=Math.cbrt(x1);
     t1.setText(x5+"");
  }
  void f18(ActionEvent e)
  {
     String s1=t1.getText();
     double x1=Double.parseDouble(s1);
     double x5=(1/x1);
     t1.setText(x5+"");
  }
  void f19(ActionEvent e)
  {
     t1.setText(0+"");
  }
  void f20(ActionEvent e)
  {
      String s1=t1.getText();
      String s2=e.getActionCommand();
      t1.setText(s1+s2);
  }
  
    
 
}
class SimpleAirthmaticCalculator
{
  public static void main(String[] aa)
  {
    Frame1 f=new Frame1();
    f.setVisible(true);
  }
}

Footer

Math Goodies
Math Goodies
Project Info
Project Images
Project Code
×

Math Goodies

This application is built using Java in Apache NetBeans. It allows users to perform various mathematical calculations, such as arithmetic operations, age calculation, and geometric calculations (including solvers for circles, parallelograms, rectangles, rhombuses, and squares). It also includes solvers for linear and quadratic equations, statistical analysis, trigonometry, unit conversions, and calculators for weight, temperature, length, and time.

Footer

×

Math Goodies

Footer

Simple Notepad
Simple Notepad
Project Info
Project Images
Project Code
×

Simple Notepad

This is a simple notepad application where users can create and save text files, as well as edit them performing actions such as setting colors, cutting, copying, pasting, and finding text.

Footer

×

Simple Notepad

Footer

Age Calculator
Age Calculator
Project Info
Project Images
Project Code
×

Age Calculator

We can calculate age using this calculator; it is built in Java.

Footer

×

Age Calculator

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Frame1 extends JFrame
{
  JComboBox c1=new JComboBox();
  JComboBox c2=new JComboBox();
  JComboBox c3=new JComboBox();
  JComboBox c4=new JComboBox();
  JComboBox c5=new JComboBox();
  JComboBox c6=new JComboBox();
  JButton b1=new JButton("OK");
  JLabel l1=new JLabel("Age:");
Frame1()
{
  setSize(700,550);
  setDefaultCloseOperation(3);
  setLayout(null);
  c1.setBounds(20,20,150,40);add(c1);
  for(int i=1;i<=31;i++)
  {
     c1.addItem(i);

  }
  c2.setBounds(180,20,150,40);add(c2);
  for(int i=1;i<=12;i++)
  {
     c2.addItem(i);

  }
  c3.setBounds(340,20,150,40);add(c3);
  for(int i=1960;i<=2040;i++)
  {
     c3.addItem(i);

  }
  c4.setBounds(20,150,150,40);add(c4);
  for(int i=1;i<=31;i++)
  {
     c4.addItem(i);

  }
  c5.setBounds(180,150,150,40);add(c5);
  for(int i=1;i<=12;i++)
  {
     c5.addItem(i);

  }
  c6.setBounds(340,150,150,40);add(c6);
  for(int i=1960;i<=2040;i++)
  {
     c6.addItem(i);

  }
  b1.setBounds(500,150,150,40);add(b1);
  l1.setBounds(20,270,400,40);add(l1);
  l1.setFont(new Font("Arial",1,30));
  b1.addActionListener(new ActionListener()
  {
    public void actionPerformed(ActionEvent e)
    {
        f1();

    }
   });

}
   void f1()
   { 
      int d1=Integer.parseInt(c1.getSelectedItem()+"");
      int m1=Integer.parseInt(c2.getSelectedItem()+"");
      int y1=Integer.parseInt(c3.getSelectedItem()+"");
      int d2=Integer.parseInt(c4.getSelectedItem()+"");
      int m2=Integer.parseInt(c5.getSelectedItem()+"");
      int y2=Integer.parseInt(c6.getSelectedItem()+"");
      int d=d1-d2;
      int m=m1-m2;
      int y=y1-y2;
      if(d<0)
      {
         d=d+30;
         m--;
      }
      if(m<0)
      {
         m=m+12;
         y--;
      }
      l1.setText(y+"Years "+m+" Month "+d+" Days");  
 
   }




}
class AgeCalculator
{
  public static void main(String[] aa)
  {
     Frame1 f=new Frame1();
     f.setVisible(true);
  }
}
                               

Footer

RGB Color Generator
RGB Color Generator
Project Info
Project Images
Project Code
×

RGB Color Generator

The user can create a wide variety of colors by combining red, green, and blue.

Footer

×

RGB Color Generator

Footer

Temperature Unit Conversion
Temperature Unit Conversion
Project Info
Project Images
Project Code
×

Temperature Unit Conversion

We can convert temperature units for example, changing Celsius to Fahrenheit or Kelvin.

Footer

×

Temperature Unit Conversion

Footer

Add Text In ComboBox
Add Text In ComboBox
Project Info
Project Images
Project Code
×

Add Text In ComboBox

We can add items or text to the combo box and then select items from it.

Footer

×

Add Text In ComboBox

Footer

Print Number Of Words
Print Number Of Words
Project Info
Project Images
Project Code
×

Print Number Of Words

The user will enter a string, and the number of words and characters in it will be calculated.

Footer

×

Print Number Of Words

import java.io.*;
import java.util.*;
import java.text.*;
class PrintNumberOfWordss
{
   public static void main(String[] aa)
   {
	   try
	   {
		   Scanner sc=new Scanner(System.in);
		   System.out.println("Enter a string");
		   String s=sc.nextLine();
		   String[] arr=s.split(" ");
		   System.out.println("Total Words : "+arr.length);
		   System.out.println("Total Characters : "+s.length());
	        
	   }
	   catch(Exception ee)
	   {
		   System.out.println("Enter Only a String");
	   }
   }
}

Footer

Print Table Of Number
Print Table Of Number
Project Info
Project Images
Project Code
×

Print Table Of Number

The user will enter an integer, and its multiplication table will be printed.

Footer

×

Print Table Of Number

import java.io.*;
import java.util.*;
public class PrintNumberTable 
{
  public static void main(String[] args) 
  {
	  try
	  {
	     Scanner sc=new Scanner(System.in);
	     System.out.println("Enter a Number");
	     int n=sc.nextInt();
    int i = 1;
    do 
	{
      System.out.println(i*n);
      i++;
    }
    while (i <= 10);
      }
      catch(Exception ee)
      {
		  System.out.println("Please Enter Only a Number");
	  }	  
  }
}

Footer

Showing page  1  of  1  (Total  10 records)
×

Project Related Images

Loading...
Name : Krishna Verma    |    Father's Name : Mr. Satish Kumar    |    Email ID : krishnaverma28081997@gmail.com    |    Religion : Hindu    |    Address : Dayampur, kanker khera, Meerut Cantt (250001), UP    |    Date of Birth : 28 August 1997    |    Marital Status : Non-Married    |    Place of Birth : Dayampur Kanker Khera Meerut Cantt.    |    Gender : Male    |    Age : 28    |    Contact : 9520335394    |    Father's Occupation : Sports man    |    Mother's Name : Smt. Kuntesh Devi    |    Mother's Occupation : Homemaker    |    Number of Brothers : 1    |    Number of Sisters : 1    |    Current Residence : Dayampur kanker khera meerut cantt    |    Family Type : Nuclear Family    |    Family Name : verma    |    Height : 5' 6"    |    Weight : 70 kg    |    Complexion : Fair    |    Body Type : Athletic    |    Hair Color : Black    |    Health Status : Good    |    Any Physical Disability : No    |    Highest Qualification : B.Tech (CSE)    |    Master Skill : PHP Laravel    |    Total Projects : 40 +    |    Total Skills : 25 +    |    Languages Known : Hindi and English    |    Website : krishnaportfolio.in    |    Siblings : 3    |    Nationality : Indian    |    Total Experience : 5 Years    |    LinkedIn : https://www.linkedin.com/in/krishna-verma-840b71356/    |    Total Programs : 10000    |    Total Projects : 40    |    Total Skills : 25    |    Total Experience : 5    |    Total DSA Problems : 200    |    Total Served Companies : 2    |    Leetcode : https://leetcode.com/u/krishnavermadeveloper/    |    Naukri : https://www.naukri.com/mnjuser/profile?id=&altresid