dim charityN(2) as string
console.writeline("How many customers are there?")
customer = console.readline()
dim DT(customer) as decimal
console.WriteLine("What are the charity's names? ")
charityN(i - 1) = console.ReadLine()
console.WriteLine("The chosen charities are: ")
console.WriteLine(i + 1 & "." & charityN(i))
console.WriteLine("//NEXT CUSTOMER//")
console.WriteLine("What charity would you like to donate to?")
choice = console.ReadLine()
while choice >3 Or choice > 1
console.writeline("error")
choice = console.readline()
console.writeline("Charity of choice is: " & CharityN(choice - 1))
console.WriteLine("What is the customer's shopping bill?")
bill = console.ReadLine()
console.WriteLine("The bill was " & "$" & bill)
donation = math.Round(donation, 2)
console.WriteLine("$" & donation & " to " & CharityN(choice - 1))
DT(choice - 1) = DT(choice - 1) + donation
For k as integer = 0 to 2
console.WriteLine(charityN(maxIndex)& ":" & " got the total amount of $" & max)
DT(maxIndex) = -DT(maxIndex)
console.WriteLine("THE GRAND TOTAL DONATED TO CHARITY IS: " & "$" & GrandT)