Please help. I need to create a project in visual basic using windows form appli
ID: 3692591 • Letter: P
Question
Please help. I need to create a project in visual basic using windows form application. I have attached screen shots of what final program should look like.
Create a project for maintaining a checkbook using two tiers. Presentation Tier Main form Use radio buttons or a drop-down list to indicate the transaction type: check, deposit, interest, or service charge. Allow the user to enter the amount in a text box for the amount and display the account balance in a label or read-only text box. Summary form Display the total number and the total dollar amounts for deposits, checks, interests, and service charges. Business Tier Validate that the balance can cover a check. If not, deduct a service charge of $10; do not process the check. Process interest and deposits by adding to the balance and checks and service charges by reducing the balance.
CheckBook C Check Deposit C Interest Amount: Account Balance: Service Charge ProcessExplanation / Answer
Public ch1, ch2, ch3, ch4, amt1, amt2, amt3, amt4, tot
Private Sub Command1_Click()
tot = 100000
If Option1.Caption = "Check" Then
ch4 = ch4 + 1
amt4 = amt4 + Val(Text1)
Text2 = tot - amt4
MsgBox ("Transaction done successfully")
End If
If Option1.Caption = "Deposit" Then
ch1 = ch1 + 1
amt1 = amt1 + Val(Text1)
Text2 = tot + amt1
MsgBox ("Transaction done successfully")
End If
If Option1.Caption = "Interest" Then
ch2 = ch2 + 1
amt2 = amt2 + Val(Text1)
Text2 = tot + amt2
MsgBox ("Transaction done successfully")
End If
If Option1.Caption = "Service Charge" Then
ch3 = ch3 + 1
amt3 = amt3 + Val(Text1)
Text2 = tot + amt3
MsgBox ("Transaction done successfully")
End If
tot2 = Val(Text2)
End Sub
Private Sub Command2_Click()
Form2.Show
Form2.Label7 = ch4
Form2.Label8 = ch1
Form2.Label9 = ch2
Form2.Label10 = ch3
Form2.Text1.Text = amt4
Form2.Text2.Text = amt1
Form2.Text3.Text = amt2
Form2.Text4.Text = amt3
End Sub