70 962
Assignments Done
98,9%
Successfully Done
In March 2019

Answer to Question #4620 in Visual Basic for Kristin

Question #4620
The problem is:
Create an application that lets the user enter the amount that he or she has budgeted for a month. A loop should then use input boxes to prompt the user for his or her expenses for the month, and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget.

I am really confused and just don't understand

My code looks like this so far:

Option Strict On
Public Class Form1

Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click
Dim BudgetAmount, NumExpenses, Expenses, TotalExpenses, AmountUnder, AmountOver As Decimal
Dim Count As Integer


BudgetAmount = CDec(InputBox("Enter the amount that you have budgeted for a month", "Monthly Budget"))
NumExpenses = CDec(InputBox("Enter the number of expenses", "Number of Expenses"))
Expenses = CDec(NumExpenses)
lstExpenses.Items.Add("Number of Expenses is " & NumExpenses.ToString)
For x As Decimal = 1 To NumExpenses
'Expenses = CDec(InputBox("Ple
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions