Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Menukaart
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Kleuren instellen
- Console.BackgroundColor = ConsoleColor.White;
- Console.ForegroundColor = ConsoleColor.DarkBlue;
- Console.Clear();
- // Introductie van het menu
- Console.WriteLine("Welkom!");
- Console.ReadLine();
- Console.WriteLine("Nadat u een keuze heeft kunnen maken mag u beneden de nummers van uw gerechten invoeren!");
- Console.ReadLine();
- Console.WriteLine("Soep van de dag:[Gerecht1] Broccoli soep Prijs: $ 7,50");
- Console.WriteLine("Catch of the day[Gerecht2] Witvis met groente en scampi's Prijs: $21,50");
- Console.WriteLine("*De Standaard kaart*");
- Console.ReadLine();
- Console.ReadLine();
- Console.WriteLine("*Soepen:*");
- Console.ReadLine();
- Console.WriteLine("[Gerecht3] Tomatensoep $ 5.50");
- Console.WriteLine("[Gerecht4] Franse Uiensoep $5.50");
- Console.WriteLine("[Gerecht5] Kippensoep $5.50");
- Console.ReadLine();
- Console.WriteLine("*Voorgerechten:*");
- Console.ReadLine();
- Console.WriteLine("[Gerecht6] Brood met Alioli $4.50");
- Console.WriteLine("[Gerecht7] Brood met Kruidenboter $4.50");
- Console.WriteLine("[Gerecht8] Brood met Tapenade $4.50");
- Console.WriteLine("[Gerecht9] Carpaccio $8.00");
- Console.WriteLine("[Gerecht10] Tonijnsalade $7.50");
- Console.WriteLine("[Gerecht11] Tapasplank $15.50 ");
- Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 10) / 2);
- Console.WriteLine("*Hoofdgerechten:*");
- Console.SetCursorPosition((Console.WindowWidth -25) / 2, (Console.WindowHeight - 8) / 2);
- Console.ReadLine();
- Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 6) / 2);
- Console.WriteLine("[Gerecht12] Sate op varkenshaas $14.50");
- Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight - 4) / 2);
- Console.WriteLine("[Gerecht13] Surf & Turf $ 12.50");
- Console.SetCursorPosition((Console.WindowWidth -25) / 2, (Console.WindowHeight -2) / 2);
- Console.WriteLine("[Gerecht14] Spaghetti Bolognese $9.50");
- Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight -0) / 2);
- Console.WriteLine("[Gerecht15] Pasta met kip $8.50");
- Console.SetCursorPosition((Console.WindowWidth - 25) / 2, (Console.WindowHeight + 2) / 2);
- Console.WriteLine("[Gerecht16] Friet met zuurvlees");
- double gerecht1 = 7.50;
- double gerecht2 = 21.50;
- double gerecht3 = 5.50;
- double gerecht4 = 5.50;
- double gerecht5 = 5.50;
- double gerecht6 = 4.50;
- double gerecht7 = 4.50;
- double gerecht8 = 4.50;
- double gerecht9 = 8;
- double totaal = 0.00;
- bool While1 = true;
- while (While1)
- {
- Console.Write("Geef uw keuze: ");
- string keuze = Console.ReadLine().ToLower();
- switch (keuze)
- {
- case "1":
- {
- totaal = totaal + gerecht1;
- Console.WriteLine(totaal);
- break;
- }
- case "2":
- {
- totaal = totaal + gerecht2;
- Console.WriteLine(totaal);
- break;
- }
- case "3":
- {
- totaal = totaal + gerecht3;
- Console.WriteLine(totaal);
- break;
- }
- case "4":
- {
- totaal = totaal + gerecht4;
- Console.WriteLine(totaal);
- break;
- }
- case "totaal":
- {
- While1 = false;
- Console.WriteLine(totaal);
- Console.ReadLine();
- break;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement