My assignment is to get the
Get Monthly Income (Num1)
Get Monthly Home Rent/Mortgage (Num2)
Get Other Monthly Payments (alimony, child support, student loans) (Num3)
Display Allowable Monthly Car Payment
Display Maximum Car Value (interest rate based on credit) (answer)
Public Class Form1
Dim Num1 As Integer
Dim Num2 As Integer
Dim Num3 As Integer
Dim debt As Integer
Dim monthly As Integer
Dim Answer As Integer
Private Sub Buttonsubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Buttonsubmit.Click
Num1 = TextboxNum1.Text ' This will get the users monthly income
Num2 = TextboxNum2.Text ' This will get the monthly home/rent mortgage
Num3 = TextboxNum3.Text ' this will get any other monthly payments
debt = 0.36 * Num1 ' I can not charge more then 36% of the users monthly income
monthly = debt - Num2 - Num3 ' now I subtract the debts
' this is where I need help, below is part of the code I need for the credit report, (I dont know how to code the percentage for the radiobuttons)
'I need to be able to check one of the three radiobuttons to see how good the credit the user has (it be 10%, 16%, or 23%)
' and after that I will put the credit (one of the radiobuttons) times it by 6 years, and then times it by how much the user can afford (monthly), and this will display the maximum car value
' Im just stuck on how to code the radiobuttons so they can produce a percentage ( the 10%, 16%, and the 23%) and how to get the how to finish the rest of the code
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles badcredit.CheckedChanged
If badcredit.Checked = True Then
' I dont know what to do to put this as 23 %
Else
If okcredit.Checked = True Then
' This needs to be 16%
Else
If goodcredit.Checked = True Then
' and this needs to be 10%
End If
End If
End If
End Sub
End Class
This is my example that I have to use (the money for the income, rent, and other monthly payments the user entered already)
1. If there monthly Income is: $2,000.00
2. Monthly Home Rent/Mortgage: $500.00
3. Other Monthly Payments (alimony, child support, student loans): $100.00
4. Then there allowable Monthly Car Payment:
( 36% of 2,000 (income) = 720)
( now I subtract debts 720 - 500 (rent) - 100 (other) = $120
5. Display Maximum Car Value (interest rate based on credit):
Present Value Function (16% per year (this is where I check one of the boxes for the credit, which in this case its an ok credit), 6 years (I have to keep it at 6 years), 120 (this is the allowable monthly car payment) per month)
So basically PV((0.16 / 12), (6 * 12), 120) : $5532.03
Can someone help me with the radiobuttons and input it to get the answer, ive showed as much as I know how to do, I just dont know how to finish the assignment