Posts

Showing posts from June, 2021

Program to add two numbers in C++

Image
 

How to perform Overloading of constructors || Learn c++ coding

Image
 How to perform Overloading of constructors || Learn c++ coding  Program to perform overloading of constructors. 1. First open a turbo c++ compiler  2. Now click on new and copy the code given below. #include<iostream.h> #include<conio.h> class A { public: A() {cout<<"\n This is a constructor with no arguments"; } A(int x) {int y=x;  cout<<"\nThis is a constructor with one argument and value received is"<<y; } }; void main() {clrscr(); A obj1; A obj2(20); getch(); } Now run the code and output will be:-

How to make a simple class and object in C++

Image
  Learn to make a simple class and object in C++ Syntax of creating a class is :     class Classname { Code }; Syntax of creating object of any class is: Classname  ObjectName ;

Program to add two numbers in C++

Image
 

KVS PAPER SOLUTION 2018||Computer Literacy Part ||पेपर मैं करे अपने 10 ...

Image
 KVS  PAPER SOLUTION 2018||Computer Literacy Part ||पेपर मैं करे अपने 10 ...

How to Write Comment in HTML

Image
  Code To Add Comment in Html Syntax to ADD comment in HTML is  <!--   This is a Comment -->.

Write a Hello Program in HTML

Image
  Learn to write a Hello Program in HTML.                                                                        (2 minutes coding)             Steps to make your own program

Program to turn the Bulb ON/OFF by changing the source of image using JAVASCRIPT

Image
  Program to change the image source using Javascript.                                                           (2 minutes coding) Steps to make your own image source changing program

How to change the image source using Javascript.

Image
  Program to change the image source using Javascript.    (2 minutes coding) Steps to make your own image source changing program

How to use Frames in HTML.

Image
  Learn to use Frames in HTML. Frames are used in place of body in HTML. The   <Frameset> tag is used in place of <body> tag. The frameset element can have rows or cols attribute . The number of rows or cols are used to define number of rows or cols in frameset. Frame tag contains src attribute in which we will provide the path of web page whose  content we want to display   in that  particular frame.

How to write a program to insert graphics in a web page.

Image
  Learn to add graphics(images) in a web page(HTML page). (2 minutes coding) Steps to add images or graphics in a web page.

Program for finding whether a given number is Palindrome or not using JavaScript.

Image
  Learn to Make a program for checking whether the  number is palindrome or not using JavaScript .      (2 minutes coding)                                           Steps to make your own program

How to make a factorial calculator program using Javascript and html.

Image
  Learn to make a factorial calculator program using JavaScript and Html.   (2 minutes coding) Steps to make your own factorial calculator using JavaScripts and Html.

How to make a SIMPLE CALCULATOR USING HTML without using Javascript

Image
  Learn to Make a Simple CALCULATOR in just 2 minutes with  HTML without using JavaScript or CSS.                                                   (2 minutes coding)    Steps to make your own calculator

Inserting C# windows form data into Ms Access

Image
    Program in C# for creating  a connection with Ms access      and storing data in Access. 1. Create a Windows form like this.

How to perform Overloading of constructors || Learn c++ coding

Image
 Program to perform overloading of constructors. 1. First open a turbo c++ compiler  2. Now click on new and copy the code given below. #include<iostream.h> #include<conio.h> class A { public: A() {cout<<"\n This is a constructor with no arguments"; } A(int x) {int y=x;  cout<<"\nThis is a constructor with one argument and value received is"<<y; } }; void main() {clrscr(); A obj1; A obj2(20); getch(); } Now run the code and output will be:-

Write a Factorial Program using Recursion in C++

Image
 Write a Factorial Program using Recursion in C++ What are recursive functions? <!-w3school->  Recursive functions are those functions that repeatedly calls itself directly or indirectly during execution .                                                                        Steps to write the program 1. Open a turbo c++ compiler or any other compiler. 2. Write the code given below . #include<iostream.h> #include<conio.h> int Factorial(int x)   // Factorial Function  Coding {  if(x<=1)  { return 1; }  else {  return x*Factorial(x-1); } }

How to Install Java (JDK) in PC or Laptop

Image
  How to Install Java (JDK) in PC or Laptop Steps to install JAVA are:- 1. You need to download JDK according to the configuration of your OS. example:- My PC is having Windows 7 of  64 bit . So, i can download it from any of the site mentioned below. i.  http://www.oracle.com/technetwork/java/javase/overview/index.html . ii.  https://download.cnet.com/Java-Development-Kit-64-Bit/3000-2218_4-75317068.html iii.  https://www.filehorse.com/download-java-development-kit-64 iv.  https://www.filehorse.com/download-java-development-kit-32/download/ 2. Once the JDK has been downloaded ,install the software by clicking on it.

Write a Program of Hello World in Java

Image
    Hello World! Program in Java Steps are as follow:- 1.  Open a notepad File. 2. Write the code given below in your File and save the file with name First.java. class First { public static void main(String arg[]) { System.out.println("Hello World !,This is my First Java Program"); } } 3. Now compile the file by using command prompt.To open command prompt write cmd on run.

Simple Program for creating object in JAVA.

Image
   Java Program for Object Creation 1 .  Open notepad file. 2. Write the code given below in notepad. class Student { String name; String age; public static void main(String arg[]) {//Creating Object of Student class Student  obj= new Student(); // calling default constructor while creating object System.out.println("Default Name of Object "+obj.name); System.out.println("Default Age of Object "+obj.age); } }

Socket Programming in java

Image
  Creating Chat Server in Java   1. Open two notepad files. 2. Write the codes of Server and Client in separate files. a.) Server Code import java.io.*; import java.net.*; public class MyServerCode {DataInputStream dIS; public MyServerCode() { try {

Write a Program for exception Handling in java

Image
 Program for Exception Handling in Java using try and catch blocks 1. Open the notepad file. 2. Write the code given below in the file. import java.util.Scanner; class Excep { public static void main(String args[]) { int div,a,b; Scanner input= new Scanner(System.in); System.out.println("Enter 1st Number"); a=input.nextInt(); System.out.println("Enter 2nd Number"); b=input.nextInt(); try { div=a/b;

Digital Comparator or Magnitude Comparator/ Bit Comparator in Hindi (हिन...

Image