Q. Write a program to calculate working capital for company A that has cash of about? Rs. 2,50,000, Accounts received of about Rs. 1,50,000 and inventories of about Rs. 5,00,000. Company A also has accounts payable of Rs. 3,00,000, short term borrowings of Rs. 75,000 and accrued liabilities of about Rs. 1,25,000.

[Hint. Working Capital Current assets - Current liabilities]

Answer :-

cname = input("Enter the name of the company : ")

cam = float(input("Enter the cash amount your company currenty has (in Rs.) : "))
arc = float(input("Enter the amount your company has recieved (in Rs.) : "))
inv = float(input("Enter the amount your company currenty holds as inventory (in Rs.) : "))
ca = cam + arc + inv

pay = float(input("Enter the amount your company has to pay (in Rs.) : "))
stb = float(input("Enter the amount your company had borrowed (in Rs.) : "))
ac = float(input("Enter the amount of accured libelities your company has (in Rs.) : "))
al = pay + stb + ac

wc = ca - al
print('')
print("Name of the company : ", cname)
print('')
print("The working Capital of the company is Rs.", wc)

Output :-

Enter the name of the company : Path Walla
Enter the cash amount your company currenty has (in Rs.) : 78569
Enter the amount your company has recieved (in Rs.) : 96548
Enter the amount your company currenty holds as inventory (in Rs.) : 85796
Enter the amount your company has to pay (in Rs.) : 102356
Enter the amount your company had borrowed (in Rs.) : 78965
Enter the amount of accured libelities your company has (in Rs.) : 78965
Name of the company :  Path Walla
The working Capital of the company is Rs. 627.0
>>> 

Direct Program for given values of question :-

current_assets = 250000+150000+500000
current_liabilities = 300000+75000+125000

working_capital = current_assets - current_liabilities

print("The working capital of Company A is Rs.", working_capital)

Output :-

The working capital of Company A is Rs. 400000
>>> 

Special thanks to "Subh" for giving a wonderful answer.

8 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. ANSWER!!! PLZZZ😭😭😭

    ReplyDelete
  2. cname = input("Enter the name of the company : ")

    cam = float(input("Enter the cash amount your company currenty has (in Rs.) : "))
    arc = float(input("Enter the amount your company has recieved (in Rs.) : "))
    inv = float(input("Enter the amount your company currenty holds as inventory (in Rs.) : "))
    ca = cam + arc + inv

    pay = float(input("Enter the amount your company has to pay (in Rs.) : "))
    stb = float(input("Enter the amount your company had borrowed (in Rs.) : "))
    ac = float(input("Enter the amount of accured libelities your company has (in Rs.) : "))
    al = pay + stb + ac

    wc = ca - al
    print('')
    print("Name of the company : ", cname)
    print('')
    print("The working Capital of the company is Rs.", wc)

    ReplyDelete
  3. current assets = 250000+150000+500000
    current liabilities = 300000+75000+125000

    working capital = current assets - current liabilities

    print("The working capital of Company A is Rs.", working capital)

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post