Computerised Accounting
Computerised Accounting
(A)
INTRODUCTION
Computer:
1 Siddiqui, S.A. Comprehensive Accountancy, Laxmi Publications, New Delhi, 1995, page no. 351.
35
ComputerizedRecounting
Origin of Computers:
Features of Computer:
36
ComputerizedRecounting
1. Speed:
2. Storage:
3. Accuracy:
37
ComputerizedAccounting
4. Automation:
5. Diligence:
6. Versatility:
38
ComputerizedRecounting
1. Input Device:
Input device is a device through which data and program is fed into
the computer.
Input Unit:
The work of input unit is to convert our every day language into "
binary patterns for the machine and transfer it to the memory. The input
devices are used to convert information to data for transitions to the
computer's processing unit. A wide variety of computer input devices
have been developed, these are:
39
ComputerizedRecounting
40
ComputerizedAccounting
41
ComputerizedAccounting
3. Output Device:
The device through which information fed into the computer and
the processed information is obtained by the user is called an output
device. On getting instructions from the control unit raw and processed
information drawn from the memory unit is displayed by the output
device. Computer is capable of solving problems by accepting
instructions and data through input device, performing operations on the
data in the central processing unit as per instructions fed into the
computer and supplying the results of these operation along with data and
instructions through output device.
1) Computer graphics
a) Block based images
b) Pixel based images
c) High resolution graphics
d) Mouse /mice
2) Magnetic Tape unit
3) Printers
a) Character printers
b) Line printers
c) Page printers
d) Dot matrix impact character printers
e) Daisy wheel printer
f) Thermal printers
g) Chain printers
h) Dand printers
i) Laser printers
42
ComputerizedAccounting
4) Graph plotters
a) Flat bed type
b) Drum type
5) Digital plotters
6) Incremental plotters
7) Micro film
8) Speech output
Hardware:
Software:
System Software:
43
ComputerizedAccounting
Operating System
Low Level Language (LLL) can be divided under two heads viz.,
Machine level language & Assembly level languages. Machine language
is at the binary level,, that is, it consists of patterns of binary digits. The
only type of code which the computer itself can understand is machine
code. The set of instructions, codes, created in conjunction with the
computer designer, is called a machine language. Assembly Language or
44
ComputerizedAccounting
45
ComputerizedAccounting
APPLICATION COMPILERS/TRANSLATORS/
INTERPRETERS
46
ComputerizedAccounting
Application Software:
Firmware:
47
ComputerizedAccounting
Classification of Computer:
48
ComputerizedRecounting
49
ComputerizedRecounting
50
ComputerizedAccounting
51
ComputerizedAccounting
(vi) Architecture
(i) Mathematical
(ii) Statistical
52
ComputerizedAccounting
(a) The growth in the size of business unit's results larger accounting
work to be completed in a limited time.
2 Siddiqui, S.A. Comprehensive Accountancy, Laxmi Publications, New Delhi, 1995, page no. 353.
53
ComputerizedJlccounting
54
ComputerizedAccounting
(xiv) Reporting in the form of trial balance, ledger balances and balance
sheet.
55
ComputerizedAccounting
3 Sehgal Ashok, Deepak, Advanced Accounting-I, Taxmann Allied Services Pvt. Ltd, New Delhi,
September, 2001 Page No. 1297.
56
ComputerizedAccounting
4 Siddiqui, S.A. Comprehensive Accountancy, Laxmi Publications, New Delhi, 1995, Page No. 355.
57
ComputerizedRecounting
(b) Computer -is always fresh and never get tired like human beings. It
can memories a variety of items. Computer has great capacity to
store.
(c) It presents results in an orderly and systematic way. Neat and clear
presentation is an added beauty of computer.
(e) The routine accounting functions are done at a much faster pace
than what is possible under manual accounting
(i) They can help in generating the desired kind of reports, which help
management to discharge their function effectively.
58
ComputerizedAccounting
(c) The Business organisation will not have to spend anything towards
the operating costs of the computer. The organisation will have to
pay the hire charges for use of the computer.
(d) The firm hiring out computer services have trained and qualified
staff. Thus, accounting work is done with greater accuracy and
efficiency.
(e) The need for getting the existing staff trained or recruitment of new
qualified staff will not at all arise. Thus, there is no question of
training and recruitment costs.
(f) The computerised services can only be used for specific jobs and
not for routine jobs, which can otherwise also be efficiently done
without the use of computers.
(g) Hiring of computer services has the utmost flexibility, the services
may be altered at will, without any financial burdens. There is no
risk of loss due to obsolescence.
(i) Hiring the computer service does not involve any capital
expenditure, operation and maintenance cost. Financial
59
ComputerizedRecounting
(iv) Data about the routine reports of the organisation such as pay-roll,
ledger preparation, stock record keeping etc. should be separately
processed.
60
ComputerizedAccounting
61
ComputerizedAccounting
62
ComputerizedRecounting
63
ComputerizedRecounting
(B)
Stand-alone Computer
64
ComputerizedJ&ccounting
65
ComputerizedAccounting
66
ComputerizedAccounting
number of devices in the network, type of these devices, the speed with
which the devices need to be accessed etc. in the organisation.
67
ComputerizedAccounting
Example -1
Example-2
68
ComputerizedRecounting
First Step
Second Step
The computer machine also looks for any instructions declare the
transaction valid or invalid.
69
ComputerizedRecounting
status in the desired class and desired train on the desired date of travel,
train number, class of journey destination etc. are entered into computer
machine. This makes computer system on line. If the Airline company
or Railway company also want to know that its computer machine
immediately update the availability status if the reservation materialises
and thus automatically reduce the number of vacancies by the number of
seats reserved. This additional work answers the dealing accountant the
next inquiry made for the same travel date except for the number of seats
asked. This is an inherent requirement of every air line company or
railway company in its reservation system because there will be far too
numerous operators making on line inquiries from their respective
terminals at different locations.
i
70
ComputerizedAccounting
71
ComputerizedAccounting
72
ComputerizedRecounting
73
ComputerizedJiccounting
74
ComputerizedAccounting
(C)
CONTROL ON ACCOUNTS THROUGH COMPUTER
PROGRAM
(b) Go to statements
(c) On Go to statement
that when a BASIC program is RUN, the Basic statements in the program
are executed in ascending order of their line the lowest line number is
executed first followed by the Basic statement having the next highest
line number and so on till the end of the program. In computer
programming, we will often across situations where we may want to-
75
v ComputerizedRecounting
76
ComputerizedRecounting
(2) If (the condition is false) then (ignore this statement) for example:
(1) If we eat too many sweets than we will have to visit the doctor.
Here, when we talk about conditions we will be referring to a relation,
arithmetic or logical, between two expressions constants and/or variables.
To understand what is meant by condition, better study the example given
below:
30 End
Table No. 1
77
ComputerizedJlccounting
Age 17
Syntax:
Line No. Go to X
Here:
Example:
100 Go to 240 (For forward jumping)
Solution
10 REM X Go to
30 Go to 20
40 End
78
ComputerizedRecounting
Run
When we run this program we will see the screen fill wish string
constant "happy marriage" and will continue to be printed endleslly. The
only way we can stop the program without losing it is by pressing both
the "Ctrl" (Control) and the "Scroll lock" keys simultaneously.
In this example, we have just written our first program with a loop.
Let us follow program control through the program to understand that
really happens. When we Run the program, program control first passes
through line 10. Line 10 is ignored because it starts with the keyword
REM. Program control then moves on to line 20. Line 20 displays
"happy Marriage" on the screen and program control passes on to line 30.
The Go to statement in line 30 will then send program control back to line
20. "Happy marriage" is printed once again on the display screen and
program control is transferred to line 30. Line 30 once again sends
program control back to line 20. This process will continue to repeat itself
and shall never come to an end. What we have here is an endless or an
infinite loop.
79
ComputerizedRecounting
10CLS
25 Go To 40
40 End
When we Run this program the message line 30 is not displayed because
the Go To statement in line 25 causes program control to jump directly to
line 40.
Integer
Action
Value
80
ComputerizedAccounting
If any integer value is less than once or greater than the total
number of line numbers given in the list then an "out of range" error
message will occur.
Syntax:
NextN
Here
End number The number at which the loop counter will stop
counting and exit the loop.
(Step x) It called parameter and it is optional
81
ComputerizedAccounting
Main parts:
Examples:
100 For A = 1 to 7
200 next A
10CLS
20 For A = 1 to 7
40 Next A
50 END
When we Run this program we will see that the string "HAPPY
MARRIAGE" is displayed seven times on the screen. Just as we had
wanted. Let us follow program control to see what actually happens in a
For------ Next loop.
For A = 1 to 7
Body of the loop
82
ComputerizedAccounting
Next A
Cheek of loop counter = end number
(A = 7, exit the loop)
A pictorial representation of how a For-------- Next loop operates,
method of a loop counter counts and controls a For------ Next loop.
1 A=1 1 No.
2 A= 1+1 = 2 No.
3 A = 1+1+1 =: 3 No
4 A —l+l+l+l= 4 No
5 A =1+1+1+1+1= 5 No
6 A =1+1+1+1+1+1=6 No
7 A=T+1+1+1+1+1+1= 7 Yes
When the For statement in line 20 is executed for the first time the
loop counter is assigned a value equal to the start number. In this
example the loop counter "A" will therefore be assigned a live of 1. Next
line 30 is executed and the string "HAPPY MARRIAGE" is displayed on
the screen. Program control than goes to line 40 . Here, the value of the
loop counter is compared with that of end number in the For statement. If
the value of the loop counter is less than the value of end number, one is
added to the loop counter and program control is transferred back to the
For statement. This process will be repeated till finally the value of the
loop counter is equal to or greater than the value of end number. The
result is, the Print statement in line 30 is executed seven times before
83
ComputerizedRecounting
program control passes on the line 50. Here the counter "A" is used to
deep a count of the number of times the loop has been executed.
Points to Remember
2. The variable used in both the For and the Next statement must be
same.
For N = 1 to 7
Here too an error message of the type "For without Next" will be
displayed if the variables are not the same.
Example
10 Print 3x1=31
20 Print 3 x 2 = 32
30 Print 3 x 3 = 33
40 Print 3 x 4 = 34
_____50 Print 3x5=35
1210 Print 3x12= 312
84
Computerizedjlccounting
Now that we know how to control a Loop we can get the same
result with just three basic statements.
10 for A = 1 to 12
20 Print 3 x A = 3A
30 NEXT A
40 END
We must have also noticed that the Loop counter "A" has been used in
the arithmetic expression in line 20. One important point to remember
here is that we must not change the value of "A" within the body of the
loop. If we do so the loop will not operate the number of times specified
by end number.
30 FOR A = 1 to 12
50 NEXT A
60 END
STEP
85
ComputerizedRecounting
10 FOR A = 2 to 20 STEP 2
20 PRINT A,
30 NEXT A
40 END
The step 2 options in line 10 will increase the value of the Loop
counter "A" by 2 each time the NEXT statement is executed. We can
also make the loop count backwards by using a negative value in step.
Example:
20 PRINT A
30 NEXT A
In such a case the start value must always be greater than the end value.
86
ComputerizedAccounting
Example
A = 5
A = 15
A = 20
Example
A = 0+1
A = 1+1
A = 2+1
A = A+l
87
Computerized'Accounting
String Manipulation
LEN:
Syntax:
Example:
10 A $ = "INTERFACE"
30 PRINT 1
RUN '
When we Run this program we will see the number 1 appear on the
screen. This is because the String "INTERFACE" - Consists of nine
characters. LEN ( ) counts the number of characters in the String
"INTERFACE" and store the result in the numeric variable 1. To find out
the length of the String, all we have to do is display what LEN () has
stored in I. Here, it is not necessary to store the result of LEN ( ) in a
numeric variable. We can also use LEN () directly in a PRINT statement
as follows :
88
ComputerizedAccounting
10 A$ = "INTERFACE"
Now, we will see that we will get when we have a String with two
or more word in it.
NEW
AUTO
10CLS
20 AS = Interface "Information Technology"
301 = LEN (AS)
40 PRINT I
50 END
RUN
32
When we run this accounting program the numeric variable "I" in
line 30 will be assigned as value of 32. This is because there are 30
characters and 2 spaces in the String "Interface Information Technology".
Thus, BASIC considers a space to be a character as well.
Combining Strings
Example
10 AS = "GOOD"
20 B$ = "MORNING"
30 $ = A$ + B$
40 PRINT C$
RN
GOOD MORNING
89
ComputerizedAccounting
10 F$ = "TOM"
20 L$ = "JERRY*
30 C$ = F$ + + L$
RUN
Extracting Strings
RIGHT $ ( ) and MID $ ( ) are used for extracting a Strong from and
existing String.
Mid $()
90
ComputerizedAccounting
Syntax
Here:
A $ is to be extracted
Example:
10 B $ = "MONKEY TRICKS"
RUN
KEY
91
ComputerizedAccounting
the parent String from where MIDS will start extracting a substring and
substring and second number in MIDS () indicate how many characters
should be extracted from the parent String. If we try to extract more
characters than there are in the parent String. If we try to extract more
characters then there are in the parent String we will get only as many
characters as there are to the right of the Starting point specified in MID
$. For example:
10 B$ = "HIPPOPOTAMUS"
30 PRINT A $
RUN
POTAMUS
10 B$ = "HIPPOPOTAMUS"
20 A $ = MID $ (B$, 6)
RUN
POTAMUS
20 A $ = MID $ (B$, 0, 7)
In above case we shall get an error message of the type shown below:
92
ComputerizedRecounting
Left $ ( )
Syntax:
Here:
10 B$ = "BUSINESS"
20 A $ = LEFT $ (B$, 3) - -
30 PRINT A$
RN
BUS ' ’
Right $ ()
93
ComputerizedRecounting
Syntax:
Here:
Example:
10CLS
20 B$ = "MONKEY"
30 A $ = RIGHT $ (B$, 3)
40 END
RUN
KEY
94