How To Make a Text Subscript or Superscript Using HTML Code

To make a text superscript or subscript in a webpage using HTML language, there are two tags provided in the language.

Superscript

To make a text or some characters superscript, the HTML tag <sup> is used. For example, suppose we have to display 2n+1. To display it, we have to use the following code:

2<sup>n+1</sup>

We have to enclose the characters to be made superscript in <sup> and </sup>

Binary to Gray Code Converter

This post is to teach you how to convert binary number to corresponding Gray code. The conversion is so simple. You can see it..

If an n bit binary number is represented by Bn Bn-1 ...B1 and its Gray code equivalent by Gn Gn-1...G1 where Bn and Gn are the most significant bits (MSBs), then the Gray code bits are obtained from the binary code as follows. The symbol ⊕ stands for the Exclusive OR (XOR) operation explained below.

The conversion procedure is as follows:

String Comparison in C and C++ Languages and Working of strcmp function

In both C and C++ programming languages, an inbuilt function strcmp() is used to compare two strings. This function is defined in string.h header file. So, to use this function, you have to include the header file string.h in the program. Most of the people ( i mean beginners) have a wrong idea about the working of the this function. I also had made some false assumptions. This function takes two strings as arguments. And it compares the two strings using the ASCII equivalent of each character. Some of the false ideas about this function are:
  • The function returns 1 when the strings are equal and 0 when they are not equal
  • The function returns 1 when they are not equal
  • The function returns 1 when the first string is greater than the second and returns -1 when the first one is less than the second one

Half Adder and Full Adder : Logic Design Lab Experiments

Aim:
1. To design and set up a half adder using

  • (a) XOR gates and NAND gates
  • (b) NAND gates only

2. To clesign and set up a full adder using

  • (a) XOR gates and NAND gates
  • (b) NAND gates only

TTL IC PinOuts

I am adding TTL (Transistor -  Transistor Logic) IC PinOut diagrams for the ICs 7400, 7402, 7404, 7408, 7410, 7411, 7414, 7420, 7421, 7432, 7442, 7446, 7447, 7473, 7474, 7476, 7483, 7485, 7486, 7490, 7492, 7493, 7495, 74121, 74123, 74138, 74139, 74150, 74151, 74153, 74154, 74155, 74157, 74160, 74162, 74161, 74163, 74190, 74191, 74192, 74193, 74194, 74195, 7488 and 7489. This may be useful for electronics lab for engineering or poly diploma courses. I am adding it as photos here. To download it as pdf, click here.