Posts
Showing posts from June, 2021
How to perform Overloading of constructors || Learn c++ coding
- Get link
- X
- Other Apps
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:-
KVS PAPER SOLUTION 2018||Computer Literacy Part ||पेपर मैं करे अपने 10 ...
- Get link
- X
- Other Apps
Program to turn the Bulb ON/OFF by changing the source of image using JAVASCRIPT
- Get link
- X
- Other Apps
How to use Frames in HTML.
- Get link
- X
- Other Apps
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.
- Get link
- X
- Other Apps
Program for finding whether a given number is Palindrome or not using JavaScript.
- Get link
- X
- Other Apps
How to make a factorial calculator program using Javascript and html.
- Get link
- X
- Other Apps
How to make a SIMPLE CALCULATOR USING HTML without using Javascript
- Get link
- X
- Other Apps
How to perform Overloading of constructors || Learn c++ coding
- Get link
- X
- Other Apps
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++
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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.
- Get link
- X
- Other Apps
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); } }
Write a Program for exception Handling in java
- Get link
- X
- Other Apps
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 (हिन...
- Get link
- X
- Other Apps