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>
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
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:
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:
Labels:
$studymat
,
binary
,
binary code
,
code
,
coded
,
conversion
,
converter
,
decimal
,
gray
,
Gray code
,
Gray to binary
,
grey
,
number
,
representation
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
Labels:
$ccpp
,
c program
,
C++
,
codes
,
comparison
,
function
,
inbuilt
,
language
,
programming
,
return value
,
strcpy
,
string
,
string compare
,
string sort
Half Adder and Full Adder : Logic Design Lab Experiments
Aim:
1. To design and set up a half adder using
2. To clesign and set up a full adder using
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
Labels:
$studymat
,
binary
,
bit
,
circuit
,
design
,
Electronics
,
experiment
,
full adder
,
gates
,
half adder
,
lab
,
Logic design
,
logic gates
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.
Labels:
$studymat
,
CLK
,
DIP
,
Dual inline
,
Dual Input
,
Electronics
,
gates
,
GND
,
IC
,
integrated circuits
,
out
,
package
,
pin
,
pin out
,
PinOut
,
Pinouts
,
transistor
,
transistor logic
,
TTL
The ASCII Character Set or ASCII Chart
ASCII stands for American Standard Code for Information Interchange. ASCII is a 7 bit alphanumeric code used in computers. Each character is assigned with a positive integer (in between 0 and 127). This is the most popular coding system. The following is the ASCII chart of characters and corresponding integer value.
Labels:
$studymat
,
7 bit
,
alphanumeric
,
American standard
,
ASCII
,
ASCII chart
,
ASCII code
,
ASCII equivalent
,
c language
,
C++
,
character
,
character set
,
Chart
,
code
,
codes
,
Full form
,
null character
,
program
,
table
How to Hard Reset Nokia E63
This post will teach you how to hard reset Nokia E63, symbian smartphone. The same method can be
applied to hard reset similar E series phones, some other symbian phones and even some of the new Java phones from Nokia. Hard resetting is complete cleansing of phone memory and the firmware will repaired/reinstalled.
So when you hard reset your phone, it will result in loss of data including your contacts in phone memory and whatever you have stored in phone memory. To avoid loss of any important data, your can back up your data onto your memory card. There is an option provided in the phone to backup all the phone memory to memory card. To know how to backup your data, watch this video: http://www.youtube.com/watch?v=yPpqwhU4ErM
To hard reset your phone, Follow these instructions:
applied to hard reset similar E series phones, some other symbian phones and even some of the new Java phones from Nokia. Hard resetting is complete cleansing of phone memory and the firmware will repaired/reinstalled.
So when you hard reset your phone, it will result in loss of data including your contacts in phone memory and whatever you have stored in phone memory. To avoid loss of any important data, your can back up your data onto your memory card. There is an option provided in the phone to backup all the phone memory to memory card. To know how to backup your data, watch this video: http://www.youtube.com/watch?v=yPpqwhU4ErM
To hard reset your phone, Follow these instructions:
How to Hard Reset Nokia 603 Symbian Belle Full Touch Smartphone
Nokia 603 Symbian |
Labels:
buttons
,
complete reset
,
full reset
,
full touch
,
Hard reset
,
key combination
,
mobile
,
Nokia
,
Nokia 603
,
phone
,
reset
,
s60
,
smartphone
,
software
,
Symbian Belle
,
total reset
C and C++ Programs for String Sorting
Here i am writing programs in c and c++ languages to sort a given number of strings. Sorting is carried out based on the ASCII values of the letters in the strings. The string comparing function strcmp() is used in the program. These programs sort a given set of strings in ascending order.To change it into descending order just replace > with < in comparison line. The comparison line in the code is marked by comment.
C Program:
C Program:
#include<stdio.h> #include<string.h> #include<conio.h> void main() {
Labels:
$ccpp
,
c language
,
c plus plus
,
C programming
,
C++
,
code
,
compiled code
,
compiled program
,
cpp
,
program
,
sorting
,
source code
,
string
,
string sorting
Subscribe to:
Posts
(
Atom
)