Write a program that calculates the net salary using entered basic salary.

c) Write a program that calculates the net salary using entered basic salary.
Here, D.A.=27%, H.R.A.=10%, P.F.=12% of basic salary; and
M.A.=Rs.100, T.A.=Rs.1600 are fixed and I.T.=Rs.1000.
Net salary = basic salary + (DA+HRA+MA+TA)-(PF+IT)
A program should print the output in the following format only:
ENTER BASIC SALARY (in Rs.) =40000
ALLOWANCES:
D.A. =10800.00
H.R.A. = 4000.00
M.A. = 100.00
T.A. = 1600.00
DEDUCTION:
P.F. = 4800.00
I.T. = 1000.00
--------------------------------------------
NET SALARY = 50700.00

Write a program that takes a positive integer as input.

a) Write a program that takes a positive integer as input. If input is negative print
appropriate message and prompt the user to enter positive number until correct input is
received. For positive number, print its individual digit in words. For example, if input is 2694 then output should be: “Two Six Nine Four”.

Define recursion.

b) Define recursion. Write a program to find an, where a is in float and n can be any
positive or negative integer. Define a recursive function power() to perform the
operation.