14
1
Option Strict On
2
Imports System.Collections.Generic
3
Public Module Module1
4
Public Sub Main()
5
'Declare a Dictionary(Of String, Double) to represent the menu's item name and respective price
6
Dim menu As Dictionary(Of String, Double) = New Dictionary(Of String, Double)
7
8
'Add some menu items and their respective price
9
menu.Add("Soft Drink", 1.0)
10
menu.Add("Hamburger", 5.0)
11
menu.Add("Hot Dog", 3.5)
12
menu.Add("Nachos", 3.5)
13
End Sub
14
End Module
Cached Result