Dr. ($)Cr. ($)Premises26000Furniture14000Vehicles7000Inventory3000Bank5300Capital45000Loan from bank8000Trade receivables1500Trades payables2800Net profit10000Drawings90006580065800SolutionThe solution is given below −We know the equation => Assets = capital + liabilitiesIn vertical style, it is re written as −Non-current assets + current assets = capital + non-current liabilities + current liabilities (Or)Non- current assets + current assets – current liabilities = capital + non- current liabilities$$Balance sheet As on 31st March 2015Non-current assetsPremises26000Furniture14000Vehicles700047000Current assetsInventory3000Trades receivables1500Bank53009800Current liabilitiesTrade payable(2800)7000Net current asset54000Non- current liabilitiesLoan from bank(8000)46000Capital45000Net profit10000Drawings(9000)46000
Dr. ($)Cr. ($)Premises26000Furniture14000Vehicles7000Inventory3000Bank5300Capital45000Loan from bank8000Trade receivables1500Trades payables2800Net profit10000Drawings90006580065800SolutionThe solution is given below −Balance sheet of a company As on 31st March XXXXNon-current assets$$Liabilities and capital$$Premises26000Capital45000Furniture14000Net profit10000Vehicles70005500047000Drawings(9000)46000Current assetsNon-current liabilitiesInventory3000Loan from bank8000Trade receivables1500Bank5300Current liabilities9800Trade payables28005680056800
Balance sheet is one of the important aspect in financial statements. Balance sheets tells about firm’s assets, liabilities and equity. By analysing balance sheet tracks firm’s performances, need of improvements, financial obligations etc. can be identified. We can also compare previous years’ balance sheet with present to know the firm’s improvements over the years.Balance sheet is divided into three parts. One each for assets, liability and equity. Left side of sheet consists of company assets and right side is divided into two parts, one for liabilities and other for owners’ equity. There will be a header and date at the ... Read More
We are given a positive integer N. The goal is to count the pairs of distinct non-negative positive integers that satisfy the inequality − x*x + y*y < N.We will start from x=0 to x2 lt; N and y=0 to y2 < N . If any x2 + y2 < N, increase count of pairs.Let us understand with examples −Input − n=4Output − distinct pairs= 4Explanation − pairs will be (0, 0), (1, 1), (0, 1), (1, 0). All these satisfy the inequality x2 + y2 < 4Input −n=2Output − distinct pairs= 3Explanation &minus pairs will be (0, 0), (0, ... Read More
The abnormal behavior of C++ programs often leads to program crash. You may have encountered problems like Segmentation fault, Aborted, Floating point exception etc. Following are sample programs that may help you to understand the reasons for a C++ program crash.ExceptionsExceptions in C++ are responses of a program when it encounters an abnormal condition. The program crashes due to such exceptions if they are not handled properly using try-catch blocks. Following program crashes due to divide by zero exception −Example Live Demo#include int main(){ int num1=10; int num2=0; int quotient=num1/num2; printf(" Quotient is: %d", quotient); ... Read More
Given three inputs first one is “a” which is for the first term of geometric series second is “r” which is the common ratio and “n” which are the number of series whose sum we have to find.Geometric series is a series which have a constant ratio between its successive terms. Using the above stated inputs “a”, “r” and “n” we have to find the geometric series i.e., a, ar, 𝑎𝑟2 , 𝑎𝑟3 , 𝑎𝑟4 , … and their sum, i.e., a + ar + 𝑎𝑟2+ 𝑎𝑟3 + 𝑎𝑟4 +…Inputa = 1 r = 0.5 n = 5Output1.937500Inputa = 2 ... Read More
Given a number n, the task is to print the triangular patterns of alphabets of the length n. First print the n characters then decrement one from the beginning in each line.The triangular pattern of alphabet will be like in the given figure below −Input − n = 5Output Input − n = 3Output Approach used below is as follows to solve the problemTake input n and loop i from 1 to n.For every i iterate j from i to n for every j print a character subtract 1 and add the value of j to ‘A’ .AlgorithmStart In function int pattern( ... Read More
Given a certain cost price(cp) and a selling price(sp) of an unknown product or a service, our task is to find the profit earned or loss suffered using a C program where if the profit is earned should print “Profit” and it’s amount or if the loss is suffered “Loss” and its respective amount or if there is not profit no loss then print “No profit nor Loss”.To find the profit or the loss we generally see whether the selling price(sp) or the price/amount at which a certain thing is sold or the cost price(cp) at which a certain thing ... Read More
Given an integer array arr[] with some elements, the task is to find the product of all the prime number of that numbers.Prime number are those number which are either divided by 1 or the number itself, or a prime number is a number which is not divisible by any other number except 1 and the number itself. Like 1, 2, 3, 5, 7, 11, etc.we have to find the solution for the given array −Input −arr[] = { 11, 20, 31, 4, 5, 6, 70 }Output − 1705Explanation − Prime numbers in array are − 11, 31, 5 their ... Read More
Given the numerator num and denominator den of N fractions, the task is to find the product N fractions and output should be in reduced form.Like in the given figure below we have two fractions ”4/5” and “3/4” we have found the product of those two factions where the numerator of first is multiplied by the numerator of second and the denominator of the first is multiplying the denominator of the second. Now the final result is “12/20” which can be reduced so the output shall be “3/5 ” likewise we have to develop a program to solve the given ... Read More