Advertisement
nein_yards

skeletoncodeformenu

May 13th, 2022
1,875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.34 KB | None | 0 0
  1. Module Program
  2.     Sub Main()
  3.         Dim menuExit As Boolean = False
  4.         Dim menuChoice As Integer
  5.         Do
  6.             Console.WriteLine()
  7.             Console.WriteLine("WILDLIFE PARK BOOKING MENU")
  8.             Console.WriteLine(vbTab & "1 - Display prices for one-day tickets")
  9.             Console.WriteLine(vbTab & "2 - Display prices for two-day tickets")
  10.             Console.WriteLine(vbTab & "3 - Show available days for booking")
  11.             Console.WriteLine(vbTab & "4 - Make a booking")
  12.             Console.WriteLine(vbTab & "5 - Exit Menu")
  13.             Console.WriteLine()
  14.  
  15.             Console.Write("Select an option: ")
  16.             menuChoice = Console.ReadLine()
  17.             Select Case menuChoice
  18.                 Case 1, 2
  19.                     'Display extra attractions
  20.                     If menuChoice = 1 Then
  21.                         'Display one-day costs
  22.                     Else
  23.                         'Display two-day costs
  24.                     End If
  25.                 Case 3
  26.                     'Display available days
  27.                 Case 4
  28.                     'Make a booking
  29.                 Case 5
  30.                     menuExit = True
  31.                 Case Else
  32.                     Console.WriteLine("Please enter a number from 1 to 5")
  33.             End Select
  34.         Loop Until menuExit
  35.     End Sub
  36. End Module
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement