This is what I have so far am I not sure if I am writing this correctly.
A home mortgage authority requires a deposit on a home loan according to the following schedule:
Loan$ Deposit
Less than $25000 6% of loan value
$25000-$49000 $1000+10% of loan
$49000-$100000 $2000+25% of loan
Loans in excess of $100000 are not allowed. Write a program that will read a loan amount and compute and print the required deposit.
function get_deposit(loan as double)
deposit = 0
dim deposit as double
if loan < 25000 then
deposit = loan * 0.06
else if loan < 49000 then
deposit = loan * 0.1
else if loan < 100000 then
deposit = loan * 0.25
else
deposit = 0
end if
get_deposit = deposit
end function