Python has several built-in functions for converting the types of our variables. For example, we have the int() function for converting a value to an integer:
In the above example, we use the int() function to convert the birth_year string to an integer so we can subtract it from the current year.
We also have the float() function for converting a value to a float:
In the above example, we use the float() function to convert the num string to a floating point number.
Cash budget: Advanced The Green PLC has projected following unit sales for January 2019 to August 2019. The sales of Green PLC are 30% in cash and the remainder is on a credit for 1 month. It also expects cash receipts from its subsidiariesworth £40,000 in March, £26,000 in April, and £27,000 in June.The firm pays 20% in cash for all its purchases. The remaining 40% is paid inthe following month and the last 40% is paid 2 months later.Month Sales PurchasesJanuary 600,000 400,000February 500,000 350,000March 600,000 450,000April 500,000 475,000May 700,000 300,000June 800,000 450,000July 750,000 300,000August 800,000 350,000CHAPTER 4 Long- and Short-Term Financial Planning 227Wages and salaries amount to 25% of the sales in the preceding month. Theyalso need to pay rent of £15,000 every month. The payment for a new machinerywill be due in March for £45,000 and will be paid in cash. They have to pay interimtax of £45,000 in May.The firm also expects to pay dividend of £26,000 in March and receive a cashsubsidy of £37,000 from government in June.a. Assuming that the firm has a cash balance of £32,000 at the beginning of January,estimate the end-of-month closing cash balances for each month, March to August.b. The directors decide that the cash balance should be maintained at £20,000 atany given point of time. Determine the required total financing or excess cashbalance for each month, March to August.c. Do you think that Green PLC will need an overdraft facility for the period fromMarch to August? What overdraft limit should they ask for while requesting a lineof credit from banks?