Advertisement
Guest User

Project

a guest
Oct 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8.  
  9.  
  10. namespace Menukaart
  11. {
  12. class Program
  13. {
  14. static void Main(string[] args)
  15. {
  16.  
  17.  
  18. // Kleuren instellen
  19. Console.BackgroundColor = ConsoleColor.White;
  20. Console.ForegroundColor = ConsoleColor.DarkBlue;
  21. Console.Clear();
  22.  
  23.  
  24.  
  25.  
  26. // Introductie van het menu
  27. Console.WriteLine("Welkom!");
  28. Console.ReadLine();
  29. Console.WriteLine("Nadat u een keuze heeft kunnen maken mag u beneden de nummers van uw gerechten invoeren!");
  30. Console.ReadLine();
  31. Console.WriteLine("Soep van de dag:[Gerecht1] Broccoli soep Prijs: $ 7,50");
  32. Console.WriteLine("Catch of the day[Gerecht2] Witvis met groente en scampi's Prijs: $21,50");
  33.  
  34.  
  35. Console.WriteLine("*De Standaard kaart*");
  36. Console.ReadLine();
  37. Console.ReadLine();
  38. Console.WriteLine("*Soepen:*");
  39. Console.ReadLine();
  40. Console.WriteLine("[Gerecht3] Tomatensoep $ 5.50");
  41. Console.WriteLine("[Gerecht4] Franse Uiensoep $5.50");
  42. Console.WriteLine("[Gerecht5] Kippensoep $5.50");
  43. Console.ReadLine();
  44. Console.WriteLine("*Voorgerechten:*");
  45. Console.ReadLine();
  46. Console.WriteLine("[Gerecht6] Brood met Alioli $4.50");
  47. Console.WriteLine("[Gerecht7] Brood met Kruidenboter $4.50");
  48. Console.WriteLine("[Gerecht8] Brood met Tapenade $4.50");
  49. Console.WriteLine("[Gerecht9] Carpaccio $8.00");
  50. Console.WriteLine("[Gerecht10] Tonijnsalade $7.50");
  51. Console.WriteLine("[Gerecht11] Tapasplank $15.50 ");
  52. Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 10) / 2);
  53. Console.WriteLine("*Hoofdgerechten:*");
  54. Console.SetCursorPosition((Console.WindowWidth -25) / 2, (Console.WindowHeight - 8) / 2);
  55. Console.ReadLine();
  56. Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 6) / 2);
  57. Console.WriteLine("[Gerecht12] Sate op varkenshaas $14.50");
  58. Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 4) / 2);
  59. Console.WriteLine("[Gerecht13] Surf & Turf $ 12.50");
  60. Console.SetCursorPosition((Console.WindowWidth -25) / 2, (Console.WindowHeight -2) / 2);
  61. Console.WriteLine("[Gerecht14] Spaghetti Bolognese $9.50");
  62. Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight -0) / 2);
  63. Console.WriteLine("[Gerecht15] Pasta met kip $8.50");
  64. Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight + 2) / 2);
  65. Console.WriteLine("[Gerecht16] Friet met zuurvlees");
  66.  
  67.  
  68. double gerecht1 = 7.50;
  69. double gerecht2 = 21.50;
  70. double gerecht3 = 5.50;
  71. double gerecht4 = 5.50;
  72. double gerecht5 = 5.50;
  73. double gerecht6 = 4.50;
  74. double gerecht7 = 4.50;
  75. double gerecht8 = 4.50;
  76. double gerecht9 = 8;
  77.  
  78. double totaal = 0.00;
  79. bool While1 = true;
  80.  
  81. while (While1)
  82. {
  83. Console.Write("Geef uw keuze: ");
  84. string keuze = Console.ReadLine().ToLower();
  85.  
  86. switch (keuze)
  87. {
  88. case "1":
  89. {
  90. totaal = totaal + gerecht1;
  91. Console.WriteLine(totaal);
  92. break;
  93. }
  94. case "2":
  95. {
  96. totaal = totaal + gerecht2;
  97. Console.WriteLine(totaal);
  98. break;
  99. }
  100. case "3":
  101. {
  102. totaal = totaal + gerecht3;
  103. Console.WriteLine(totaal);
  104. break;
  105.  
  106. }
  107. case "4":
  108. {
  109. totaal = totaal + gerecht4;
  110. Console.WriteLine(totaal);
  111. break;
  112.  
  113. }
  114. case "totaal":
  115. {
  116. While1 = false;
  117. Console.WriteLine(totaal);
  118. Console.ReadLine();
  119. break;
  120. }
  121. }
  122. }
  123.  
  124. }
  125.  
  126. }
  127.  
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement