Posts

Showing posts from March, 2018

Basic website creating using table for beginners with code

<!Doctype html> <head> <title>Website</title> </head> <body> <center><h1>This is my first website</h1></center> <table width=100% border=1 cellpadding=”10″ cellspacing=”10″> <tr> <th width=20%>This is left side.</th> <th width=60% aligh=center><h2><a href=”http://www.ranjanbarman.org”>HOME</a> | <a href=”#”>Bikes</a> | <a href=”#”>Cares</a> | <a href=”#”>Dresses</a> | <a href=”#”>Photos</a></h2></th> <th width=20%>This is the right side.</th> </tr> <tr> <td></td> <td height=400> This is the place for your web content. </td> <td></td> </tr> <tr> <th> About Us </th> <th> Contact Us </th> <th> Copy rights@ </th> </tr> <tr> </table> </body> </html> Write the code into your notepad ...

Differentiate between primary and secondary memory

Points Primary Memory Secondary Memory Capacity It has smaller capacity e.g, 2 or 4 GB RAM, 3.5 MB cache memory etc It has large capacity e.g, 1 TB or 500 GB hard disk. Price It is expensive comparing to it’s size. It is very cheep comparing to it’s size. Speed It is faster than secondary storage. It is very slower comparing to primary memory. Volatility It is volatile. Removes its data when computer shuts down. It is fixed. It keeps its data until we delete it. Example RAM(read only memory), Cache memory Storage devices, CD/DVD disks, Floppy Disks, Pen drives

What is software?

When some collection of instructions or small programs work together to perform a particular task then we can call them together a software. A software is such a part of a hardware that can make the hardware follow the user’s instructions. Like the Car making hardware follow the instructions of the engineers through the software environment to make or design a car. We can print data/information using a printer or play our sound-box. Without a software it wouldn’t be possible. So, Software makes hardware workable. There are two types of software available they are system software and application software.

How computer is used as social networking?

We can’t feel the taste of social networking until we got a computer and a internet connection. To open the webpage of a social networking sites like Facebook, Twitter, Google+ we will need a web browser like Opera Mini, Mozilla Firefox, Google Chrome etc. A web browser is an application software that helps us to make a connection with world wide wave. So, without a computer we would never make a connection with the social net networking sites. The term social networking refers to a virtual community of real people, friends, family etc. In real world we can’t reach to many people at a time so it is very hard to stay connected with people we care for. But using a single computer we can reach and stay connected with all of our relatives, friends, neighbors. We can share our thoughts with all of them with just one click. A computer is more powerful device then a smart phone. We get much more freedom when we use a computer.

Name two UNIX operating systems

Two UNIX operating systems are SunSolaris, MacOS X.

Briefly discuss about HTML tags

HTML tags are used to perform various works in a webpage. To design and decorate an html page we need to use right html tags. Here we will learn about some popular html tags that have wide use. The main two section of a webpage are the head section and the body section. But both the head and body section of a webpage reside inside html tag. The Head and Body section : We start writing html code like below <!DOCTYPE html> <head> <title> Inside head tag we write title tag. Title tag displays the title/name of a page. </title> <meta name="" content="" /> <meta property="og:url" content="http://www.ranjanbarman.org/Briefly-discuss-about-HTML-tags.html" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Briefly discuss about HTML tags" /> <meta property="og:description" content="HTML tags are used...

Write a Windows Program to display a message box with cancel, Retry and Continue.

Steps: 1. Open DEV C++. 2. Click “File” then “New” after that “Project”. 3. From “Basic” select “Wildows Application”. 4. Select “C++ project”. 5. Give a project name. 6. Click “ok” then “save”. Remove some code and write according to below program. #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { int nResult=MessageBox(NULL, “An example of Cancel, Retry, Continue”, “Hello Message Box!”, MB_ICONERROR|MB_ABORTRETRYIGNORE); switch (nResult) { case IDABORT: break; case IDRETRY: break; case IDIGNORE: break; } return 0; } Steps: 1. From “Execute” menu click on “Compile and run”. 2. Give it a name and save it. 3. Wait until your compilation is completed by the compiler. 4. Hope you get your output.

Write a windows program to output a blank box with your name given

Steps: 1. Open DEV C++. 2. Click “File” then “New” after that “Project”. 3. From “Basic” select “Wildows Application”. 4. Select “C++ project”. 5. Give a project name. 6. Click “ok” then “save”. Now you get the full program code here. You dont have to write the same code again and again for different programs. Steps: 1. From “Execute” menu click on “Compile and run”. 2. Give it a name and save it. 3. Wait until your compilation is completed by the compiler. 4. You see a blank box with the name “Caption”. 5. Close the blank box. 6. In your program code press CTRL+F. 7. Here you type the name “Caption” then click on “find”. 8. Change the word with “your name”. 9. From “Execute” menu click on “Compile and run” again. You get you result with your name printed on a blank box. #include <windows.h> /* This is where all the input to the window goes to */ LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { /* Upon destruction, ...

Draw a flowchart and write a Java program to multiply two matrices

First we must download the Java SE Development Kit from (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). Then install it. After that set the path variable. Next write the following code in any text editor and save it [with it’s class name.java] in a particular location . Open CMD and set the saved file location. Then write javac filename.java and press enter. Then type java filename and press enter. Program code: import java.util.Scanner; class MatrixMultiplication { public static void main(String args[]) { Scanner r = new Scanner(System.in); System.out.println("Enter the number of rows of first matrix"); int rowFM = r.nextInt(); System.out.println("Enter the number of columns of first matrix"); int colFM = r.nextInt(); int first[][] = new int[rowFM][colFM]; System.out.println("Enter the elements of first matrix"); int loop1, loop2; for ( loop1 = 0 ; loop1 < rowFM ; loop1++ ) { for (loop2 = 0 ; loop2 < co...