Skip to main content

Posts

Showing posts with the label recursion

lecture 7

TRIAL BALANCE  TRIAL BALANCE IS A STATEMENT IN WHICH ALL THE BALANCES OF DIFFERENT ACCOUNTS ARE SHOWN . SOME OF THE BALANCES COULD BE OF DEBIT SIDE WHEREAS OTHER'S MIGHT BE OF CREDIT SIDE . SINCE OUR ACCOUNTING IS BASED ON DOUBLE ENTRY SYSTEM . THEREFORE THE TOTAL OF DEBIT BALANCES MUST BE EQUAL TO THE TOTAL OF CREDIT BALANCES.  (ASSETS/EXPENSES/LOSSES              ARE WRITTEN ON DEBIT SIDE) (LIABILITIES/PROFITS/INCOMES      ARE WRITTEN ON CREDIT SIDE) BANK LOAN (LIABILITY) INVESTMENT (ASSETS) INTEREST ON  BANK LOAN (EXPENSE) DEBTORS (ASSETS) CREDITORS (LIABILITY) INTEREST ON INVESTMENT (INCOME) B/R (ASSETS) B/P(LIABILITY) BUILDING(ASSET) PLANT AND MACHINERY (ASSETS) CASH (ASSETS) BANK OVERDRAFT (LIABILITY) INTEREST ON BANK OVERDRAFT (EXPENSE) PURCHASES (EXPENSE)I PURCHASE RETURN(GAINS) SALES (INCOME) SALES RETURN (EXPENSE) CARRIAGE (EXPENSE) FREIGHT (EXPENSE) WAGES (EXPENSE) SALARY (EXPENSE) ADVERTISEMENT (EXPENSE) TRADE EXPENSE/ OFFICE EXPENSE (

towers of hanoi

Towers Of  Hanoi // to move all disks from peg 1 to peg 3 // you just have to move n-1 disks to peg2 // and then nth disk to peg 3 // and then n-1 disks to peg 3 towers(ndisks,source,temp,destination,) if(ndisks <>0) { towers(ndisks-1,source, destination,temp) move  disk from source to destination towers(ndisks-1,temp,source, destination) }

ACCOUNTS FOR TALLY PART 4

CLASSIFICATION OF ASSETS ON THE BASIS OF CONVERTIBILITY TO CASH  FIXED ASSETS: THE ASSETS WHICH ARE PURCHASED OR ACQUIRED FOR LONG TERM USES. EX: BUILDING,PLANT,MACHINERY,FURNITURE ETC. CURRENT ASSETS; THE ASSETS WHICH ARE ALREADY IN THE FORM OF CASH OR WHICH CAN BE CONVERTED INTO CASH WITHIN A YEAR. EX: CASH,DEBTORS,BANK BALANCE,CLOSING STOCK ETC.. ON THE BASIS OF PHYSICAL EXISTENCE TANGIBLE : EX: BUILDING,PLANT,MACHINERY,CASH INTANGIBLE: EX: GOODWILL,PATENT,COPYRIGHT

ACCOUNTS FOR TALLY PART 3

OBJECTIVES OF ACCOUNTING To keep the systematic record To settle down the disputes For the proper classification of various heads To ascertain the profit and loss of the year  For the decision making To communicate the necessary information to various users To know the financial position of the year For the comparative study of : Intra firm comparision Inter firm comparision RECEIPTS INFLOW OF CASH REVENUE NATURED CAPITAL NATURED ACCOUNTING CONCEPTS MONEY MEASUREMENT CONCEPT  GOING CONCERN CONCEPT  SEPARATE ENTITY  ACCOUNTING PERIOD CONCEPT  DUAL ASPECT CONCEPT/ACCOUNTING EQUATION CONCEPT OF CONSERVATISM/CONCEPT OF PRUDENCE MATCHING CONCEPT/ACCRUAL CONCEPT MATERIALITY CONCEPT  CONCEPT OF FULL DISCLOSURE  COST CONCEPT/HISTORICAL COST CONCEPT CONCEPT OF TIMELINESS CONCEPT OF REVENUE RECOGNITION  CONCEPT OF SUBSTANCE OVERFORM CONCEPT OF CONSISTENCY

Accounts for tally Part-2

ACCOUNTING It is an art of recording,classifying and summarising the financial natured transactions and events in such a way. So as to get the meaningful information in future. VARIOUS TERMS COMMONLY USED IN ACCOUNTING  CAPITAL: It refers to the amount invested by the proprietor into the business DRAWINGS :  Amount kept by the proprietor for the personal purpose or any amount withdrawn by the proprietor from the business for personal use  GOODS : The commodity in which we deal on regular basis. The types are : Purchase A/c Sales A/c Purchase return A/c Sales return A/c

PROGRAM TO PERFORM BINARY SEARCH USING RECURSION

LIST OF PROGRAMS #include<stdio.h> #include<conio.h> int binary(int ,int ); int a[10],md,s,c=0; void main() { int n,i; clrscr(); printf("ENTER LIMIT \n"); scanf("%d",&n); printf("ENTER ARRAY\n"); for(i=0;i<n;i++) { fflush(stdin); scanf("%d",&a[i]); } printf("ENTER NUMBER TO BE SEARCHED"); scanf("%d",&s); c=binary(0,n-1); if(c==-1) printf("NOT FOUND"); getch(); } int binary(int f,int l) {  md=(f+l)/2; if(f>l) { return(-1); } else if (a[md]<s) return(binary(md+1,l)); else if(a[md]==s) {printf("Found AT LOCATION %d IN WHICH 0 IS THE STARTING ADDRESS",md); return (1); } else return(binary(f,md-1)); } LIST OF PROGRAMS