User:KANURI SRINIVAS

A brief introduction about computers (ABC): What is a computer and what are its uses? Answer) A computer is a electromechanical device (consisting of electrical and mechanical components) and its main usage is in the areas of the following fields:- 1) In schools to impart education to the students. 2) In shops, Business places for preparing the bills, invoices etc. 3) In banks to prepare and maintain the accounts of its customers. 4) In hospitals to prepare the record of its patients and the stock record of medicines in the hospital. 5) In the field of media, from a colorful book or magazine to the newspapers and as an television monitor to view programs like live coverage of cricket matches, football matches, Olympic games, Asian games etc vide satellites using remote sensing techniques. 6) In the field of Military Department to fire the missiles, fly the aeroplanes, launch the rockets etc. 7) With the help of computers Indian scientists have launched Chandrayaan I to place their Tricolor Flag on the Moon.

When raw data is feed into the computer, it processes this raw data with specific instructions feed by user to produce the desired output. RAW DATA ---> [Computer (Processes the data)] > Output (Result) There are INPUT and OUTPUT devices attached to the computer;- INPUT DEVICES:- KEYBOARD, CONSOLE (MONITOR), FLOPPY DISCS, COMPACT DISCS, MAGNETIC TAPES etc. OUTPUT DEVICES:- PRINTER, CONSOLE, FLOPPY DISCS, MAGNETIC TAPES AND COMPACT DISCS etc. Raw data is feed into the computer via input device (Keyboard or floppy discs or CD's etc) this data is then sent to primary memory by the control unit (which acts like a brain) and the portion of the data requiring to be processed (like comparison, mathematical calculations or operations like sorting the data etc) is sent to the arithmatic logical unit or ALU where the required calculations are done and the control unit sends the calculated portion to the primary memory from there this processed data is sent to the printer in the desired format by the control unit. Thus we get the desired output on the paper which is known as an Hard Copy and the result which we view on the console is called the soft Copy. All the information is stored in computer in the form of two states or numbers 1 or 0 that is binary digits or bits. The memory of a computer is measured in the storage capacity of number of bits. Let us try programming in the Language BASIC:- BASIC (Beginners All Purpose Instruction Code) This is a HLL (High Level Language written in Source Code) 10 Rem To calculate the sum, difference & product of any two digits:- 20 input a 30 input b 40 d=0 50 d= a+b 60 e=0 70 e= a-b 80 f=0 90 f= a*b 100 print "The sum =";d 110 print "The difference =";e 120 print "The product =";f 130 end

Program (2) 10 Rem To find product upto n numbers or factorial 20 Rem 5 means ans= 5 X 4 X 3 X 2 X 1 30 input "The no. upto which the product reqd or n!":N 40 I=1 50 P=1 60 P=P*I 70 I= I+1 80 if I>N then 90 else 60 90 print "The product of n nos or n! =":P 100 end Programming with a computer is an wonderful and healthy way to exercise our human brains.--KANURI SRINIVAS (talk) 15:00, 29 October 2008 (UTC)