Archive for September 2014
Robot in flash
A simple robot in flash.. which can move forward back ward and can fire.
click on link below
to open it
http://www.kongregate.com/games/waqasj1/robot
click on link below
to open it
http://www.kongregate.com/games/waqasj1/robot
Diamond with even number in c++
#include<stdio.h>;
#include<conio.h>;
void main(){
int i;
int k;
int j;
int l;
int m;
int n;
int o;
printf("Write an even no: ");
scanf("%d", &i);
while(i%2 == 1) {
printf("\n please write an Even No: ");
scanf("%d", &i);
}
k = i/2 -1;
j = 0;
l = 1;
m = 0;
n = 0;
o = i/2;
while(o > n){
while (k > j){
printf("-");
j++;
}
while(l > m){
printf("*");
m++;
}
if (k == j){
j = 0;
k--;
}
if( l == m){
printf("\n");
n++;
m = 0;
l++;
l++;
}
}
k = j = 0;
l = i-1;
m = 0;
n = 0;
o = i/2;
while(o > n){
while(k > j) {
printf("-");
j++;
}
while(l > m){
printf("*");
m++;
}
if (k == j){
j = 0;
k++;
}
if (l == m) {
printf("\n");
n++;
l--;
l--;
m = 0;
}
}
_getch ();
}
#include<conio.h>;
void main(){
int i;
int k;
int j;
int l;
int m;
int n;
int o;
printf("Write an even no: ");
scanf("%d", &i);
while(i%2 == 1) {
printf("\n please write an Even No: ");
scanf("%d", &i);
}
k = i/2 -1;
j = 0;
l = 1;
m = 0;
n = 0;
o = i/2;
while(o > n){
while (k > j){
printf("-");
j++;
}
while(l > m){
printf("*");
m++;
}
if (k == j){
j = 0;
k--;
}
if( l == m){
printf("\n");
n++;
m = 0;
l++;
l++;
}
}
k = j = 0;
l = i-1;
m = 0;
n = 0;
o = i/2;
while(o > n){
while(k > j) {
printf("-");
j++;
}
while(l > m){
printf("*");
m++;
}
if (k == j){
j = 0;
k++;
}
if (l == m) {
printf("\n");
n++;
l--;
l--;
m = 0;
}
}
_getch ();
}
Posted by Unknown
Assigment lab-3 task-3
Creating a diamond with even number
click here to downloadHow does Keyboard works.
Working of keyboard
How computer takes input from keyboard
The process of taking input from keyboard is accomplished in 5 steps. It is not actually the case that you enter key on keyboard and cpu just know it that which key you have pressed.
steps
1. You press a key on keyboard it activates the connection of that key circuit.
2. That circuit sends a specific scan code particular to every key from memory of keyboard called keyboard controller to the its part of memory called keyboard buffer.
Keyboard controller is that part of keyboard memory in which all scan codes of every key is already stored.
Keyboard buffer saves the scan code of that key which was pressed. It can save many keys code at once.
3. Keyboard controller sends an interrupt request to the sys. software.
4. The system software respond to the interrupt by reading the scan code from buffer.
5. System software passes this scan code to the CPU which processes the code according to the application software and performs the function.
How computer takes input from keyboard
The process of taking input from keyboard is accomplished in 5 steps. It is not actually the case that you enter key on keyboard and cpu just know it that which key you have pressed.
steps
1. You press a key on keyboard it activates the connection of that key circuit.
2. That circuit sends a specific scan code particular to every key from memory of keyboard called keyboard controller to the its part of memory called keyboard buffer.
Keyboard controller is that part of keyboard memory in which all scan codes of every key is already stored.
Keyboard buffer saves the scan code of that key which was pressed. It can save many keys code at once.
3. Keyboard controller sends an interrupt request to the sys. software.
4. The system software respond to the interrupt by reading the scan code from buffer.
5. System software passes this scan code to the CPU which processes the code according to the application software and performs the function.
Saturday, 27 September 2014
Posted by Unknown
Key Board
Keyboard is an important input used device. Its is the first peripheral to be connected with computers. A standard keyboard contain 101 keys each of which send different signal to the CPU to process and let it know which key is pressed
Standard Key-Board Layout
Among IBM-Compatible computers, the most common keyboard layout is that called IBM-Enhanced keyboard. It arrange 101 keys in 5 groups.
IBM-Compatible computer
refers to any PC based on the first personal computer made by IBM. Toady an IBM compatible computer refer to any PC other than Macintosh computers.
Keys Grouping
The five groups of keyboard in which keys are arranged are:
Standard Key-Board Layout
Among IBM-Compatible computers, the most common keyboard layout is that called IBM-Enhanced keyboard. It arrange 101 keys in 5 groups.
IBM-Compatible computer
refers to any PC based on the first personal computer made by IBM. Toady an IBM compatible computer refer to any PC other than Macintosh computers.
Keys Grouping
The five groups of keyboard in which keys are arranged are:
- Alpha-Numeric keys: Area that look like a type writer is called Alpha Numeric keys. These keys include all the characters keys and also digits. Together with that it also include four other keys as well which include
- TAB: It move the selection to next tab. Also induce tabs space in word.
- CAPS-LOCK: By pressing this you will enable the upper case letter so character will be written capital.
- BACKSPACE: It is used to erase character.
- ENTER. It is used to click the selected option. Or to execute the function or program which is selected
- Modifier Keys: Modifier keys are three in number their basic function is to modify the function of other keys that's why they are called modifier keys. These three modifier keys are:
- Shift: This serve the function of caps lock but in using this key is different from caps lock as you have to hold this key to use this. So when you have to write a long data in capital you enable caps lock for ordinary usage when you write some capitals letter you use shift key.
- Alt: Alt is the term for alternate. If you hold this key and press a number a symbol will b written. Its combination is used for creating shortcuts.
- Ctrl: This is called control key its combination with different keys is used for shortcuts.
- Numeric Keys: These keys are situated at the right side of keyboard. It is like a calculator pad consist of digits and numeric operator like +, -, / and *. It also contains a Num-Lock key which when disabled the numeric pad behave like cursor or mouse.
- Function Keys: These are arranged as a row on the top of keyboard. They are usually 12 in number labelled as F1, F2, F3, ....... They are used to specialized function. For example F1 is usually for help of any program. Its functioning depend upon the software.
- Cursor-Movement These keys are four in number used to move around the cursor on Keys: screen.
- Special Purpose Keys: They are basically six keys viz INSERT, HOME, DELETE, END, PAGE UP, PAGE DOWN.
after 1996 Together with them there are two other function keys called start and shortcut.
Esc: There is another single key at top left of keyboard. Its function is to move one step back in multi-levels.
Wednesday, 24 September 2014
Posted by Unknown
Unit of memory.
A review and information on bit, byte, kilobyte (KB), megabyte (MB), gigabyte (GB), terabyte (TB).
A lot of you have confusion about what is MB KB GB in the computer terms. So let me tell the firstly that these are all the units of memory. The smallest unit of memory is a bit in which a single binary digit could be stored. The next unit is a byte which consist of 8 bits. KB means 1024 bytes for simplicity they are usually taken as 1000 bytes. The next unit is MB it is mega byte consist of 1000 KB. And the next one that is GB is 1000 MB. Further comes the TB terabyte which is of 1000 GB.
All these units are frequently used in describing computer hardware like hard disk RAM as they are memory storage units. RAM is temporary storage and Hard disk is the permanent storage where you could save all your data.
All these units are frequently used in describing computer hardware like hard disk RAM as they are memory storage units. RAM is temporary storage and Hard disk is the permanent storage where you could save all your data.
Difference between bit and byte.
Bit is the basic unit of the computer language which a computer can understand. Bit is binary digit 1 or 0 it is also called boelean variable as it can have only two states. A single bit save a single binary digit. It is the basic unit of memory. In a bit you can save only two states.
Byte is the bigger unit of memory. A byte is composed of 8 bits so now you can save 8 binary digits in a byte. In a byte how many combination could b made is to find by giving the no of bit to the power of two for example in a byte 2 raise to power 8 type of data could be saved which comes out to be 256. So 256 characters alphabets or whatever thing you want to save could be saved in a byte. In key board a byte is required to save all the 256 key to the memory.
Byte is the bigger unit of memory. A byte is composed of 8 bits so now you can save 8 binary digits in a byte. In a byte how many combination could b made is to find by giving the no of bit to the power of two for example in a byte 2 raise to power 8 type of data could be saved which comes out to be 256. So 256 characters alphabets or whatever thing you want to save could be saved in a byte. In key board a byte is required to save all the 256 key to the memory.
Which field is better CS or SE. A comparison between CS and SE.
Most of the people have a great confusion after their fsc which field they should choose computer science or software engineering. So let us have a short overview between both which would help you a lot to choose you desired program.
BSCS is a vast field covering all the topics of computer which include all professional softwares, languages and also include study of hardware. So CS is basically more general field than SE in CS you also learn others things together with programming. So after CS you could become a software engineer. You could also do Masters in software engineering.
BSSE is more specific field in which their is particular emphathises on software and you do not learn much about the hardware. You learn the programming and in different languages and learn to use all the software and make new softwares. So after doing so after doing BSSE you could not do Masters in computer science.
Both fields have a lot of scope so do not think which one is more better as far as scope is concerned. Think according to your interest if you have interest in that field you would make it otherwise whatever scope it may have.
Thanks a lot for reading this hope you would had find answer to your question for furthur query email. or leave a comment.
BSCS is a vast field covering all the topics of computer which include all professional softwares, languages and also include study of hardware. So CS is basically more general field than SE in CS you also learn others things together with programming. So after CS you could become a software engineer. You could also do Masters in software engineering.
BSSE is more specific field in which their is particular emphathises on software and you do not learn much about the hardware. You learn the programming and in different languages and learn to use all the software and make new softwares. So after doing so after doing BSSE you could not do Masters in computer science.
Both fields have a lot of scope so do not think which one is more better as far as scope is concerned. Think according to your interest if you have interest in that field you would make it otherwise whatever scope it may have.
Thanks a lot for reading this hope you would had find answer to your question for furthur query email. or leave a comment.
Friday, 12 September 2014
Posted by Unknown
Scope of BSCS.
BSCS is a vast field and in almost every field computer science has it application in one form or others. Computer science has great job market. After doing bscs you can work:
- as a programmer to create software
- as a graphic designer.
- as a animator
- as a freelancer
- as a web developer
- as a android developer
- join Microsoft
- join Google
- join Apple
you could also create you own company business or small setup.
so do not be afraid of scope.
What is bscs?
BSCS is the abbreviation of bachelor of science in computer science. As the name indicates it is the degree after high school to learn computer as a professional and adapt computer science as a profession. Computer science is a vast field in which you learn about the hardware and software of computer and how computer works. After achieving the degree you can opt comp science as a profession and could go into any desired field of computer. Basically what you learn in bscs is how computer works, how are they created, how to create different programs, make graphics, animations games and a lot of more things you can do.
Most of the person choose computer science to study further because they thought it is an easy subject and we do not have to do Maths in it. This is not the situation a sound knowledge of mathematics is essential for bscs. And bscs involves a lot of mathematics as all of the functioning of computer depend upon the concepts of math. Also to be a good programmer you require a sound knowledge of maths.
So do not choose cs as profession by thinking that easy no subject is easy unless you have interest in it. If you have interest in computer science than definitely you should choose it to study and you will enjoy and shows your best progress.
Hope this helped you alot.
Most of the person choose computer science to study further because they thought it is an easy subject and we do not have to do Maths in it. This is not the situation a sound knowledge of mathematics is essential for bscs. And bscs involves a lot of mathematics as all of the functioning of computer depend upon the concepts of math. Also to be a good programmer you require a sound knowledge of maths.
So do not choose cs as profession by thinking that easy no subject is easy unless you have interest in it. If you have interest in computer science than definitely you should choose it to study and you will enjoy and shows your best progress.
Hope this helped you alot.
A project by nustian
The basic frame work of this blog is to provide the students of BSCS all the books lectures and guideline under one head. Hope you will get alot of help by this blog please review it and let us make it even more better.... Best of Luck