Showing posts with label BLE. Show all posts
Showing posts with label BLE. Show all posts

Tuesday, November 8, 2016

Introduction to Computer


Computer

The term 'Computer' originates from the word 'computare' which means to calculate. Computer is a fast and accurate electronic device that accepts data through input device then store and process them, and resulted data are displayed from output device.

Characteristics of Computer

1.       Speed :

Computer can do calculation at a very fast rate. It can even perform very complex calculations that human being may not be able to do. Generally, the speed of computer is measured in terms of fractions of second. Different terms are used to denote the speed as millisecond, microsecond, nanosecond, picoseconds and femtosecond.

2.       Storage:

A computer system can store a great amount of information in it. Computers have inbuilt and auxiliary memory. Any data or information stored in the memory can be retrieved any time and at lightning speed.

3.       Accuracy:

If the data and instruction given are correct, the result given by the computer will always be accurate. The term GIGO (Garbage In Garbage Out) applies in this contrast as, if we feed in wrong data then the computer will obviously give us wrong data.

4.       Versatility:

The computer is a versatile machine. Computer has the ability to communicate with other systems and adopt several modes like audio-visual,  graphics, user-friendly. The computers are very flexible in its operations. It has a wide range of applications and is used in different field like education, science and technology, astronomy, business, medicines, printing etc.

5.       Diligence:

The capacity of performing repetitive task without getting tired is called diligence capacity of computer. A computer is free from tiredness, lack of concentration, fatigue, etc. it can work for hours without creating any error.

6.       Automatic:

This is an automatic machine and performs the work without intervention of user. User is required to give the data and utilize the result but the processing is automatic.

Advantages of computer:

  • Performance given by computer is 100% accurate and it is reliable than any other devices and human being.
  • Comparing with human being it is much faster.
  • Computer can be very useful in doing repeated job which man cannot do.
  •  Computer is versatile as it can do many types of jobs once at a time.
  • Computer can be used in different or multiple fields.
  • Impossible things can be done by using computer through simulation.

Disadvantages of computer:

  • It cannot be used on the dusty and rough environment.
  • Computer is very expensive so each and every people cannot afford the computer.
  • Although it is reliable, sometimes the failure of devices and program can produce unreliable results.
  • There is every chance of leakage of information because of dishonest people and hence it has less security.
  • After the advancement of computer, everyday piracy of intellectual properties in increasing.






Friday, January 29, 2016

DLE QBASIC PROGRAMMING SET -1

DLE QBASIC PROGRAMMING
Set 1
1. Write a program to calculate the sum of two numbers.
REM to calculate the sum of two numbers
CLS
INPUT “Enter the first number”; A
INPUT “Enter the second number”; B
SUM = A + B
PRINT “The sum is=”; SUM
END

2. Write a program to calculate simple interest and amount
REM to calculate simple interest and amount
INPUT “Enter the principal amount”; P
INPUT “Enter the rate”; R
INPUT “Enter the time”; T
INTEREST = (P*T*R)/100
AMOUNT = P + INTEREST
PRINT “The Simple Interest is = “; INTEREST
PRINT “The Amount is = “; AMOUNT
END

3. Write a program to calculate area of rectangle.
REM to calculate area of rectangle
INPUT “Enter length of rectangle”;L
INPUT “Enter breadth of rectangle”; B
AREA = L * B
PRINT “The Area of rectangle is=”;AREA
END

4. Write a program to calculate perimeter of rectangle.
REM to calculate perimeter of rectangle
INPUT “Enter length of rectangle”; L
INPUT “Enter breadth of rectangle”; B
PERIMETER = 2*(L+B)
PRINT “The perimeter of rectangle is = “; PERIMETER
END

5.  Write a program to calculate area of a circle.
REM to calculate area of a circle
INPUT “Enter radius of a circle”; R
CONST PI = 22/7
AREA = PI * R ^ 2
PRINT “The area of circle is = “; AREA
END

6. Write a program to calculate perimeter of a circle.
REM to calculate perimeter of a circle
INPUT “Enter radius of a circle”; R
CONST PI = 22/7
PERIMETER  = 2 * PI * R
PRINT “The perimeter of circle is = “; PERIMETER
END

7. Write a program to calculate and display area of four walls. [Hint: Area = 2H(L+B)]
REM to calculate area of four walls
INPUT “Enter length of room”; L
INPUT “Enter breadth of room”; B
INPUT “Enter height of room”; H
AREA = 2 * H * (L +B)
PRINT “Area of four walls of a room is = “; AREA
END

8. Write a program to calculate and display volume of a room.
REM to calculate volume of a room
INPUT “Enter length of room”; L
INPUT “Enter breadth of room”; B
INPUT “Enter height of room”; H
VOLUME = L * B * H
PRINT “Volume of a room is = “; VOLUME
END

9. Write a program to accept temperature in Celsius and convert into Fahrenheit. [Hint: F=9C/5+32]
REM to convert Celsius into Fahrenheit
INPUT “Enter temperature in Celsius”; C
F = 9 * C / 5 + 32
PRINT “Temperature in Fahrenheit = “; F
END


10. Write a program to accept a temperature in Fahrenheit and convert it into Celsius. [Hint: C = (F-32)5/9 ]

REM to convert Fahrenheit into Celsius
INPUT “Enter temperature in Fahrenheit”; F
C = (F - 32) * 5 / 9
PRINT “Temperature in Celsius = “; C
END




**************