Pun_Pun_Hello

Act54. CS

Sep 20th, 2021
758
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Rextester.Program.Main is the entry point for your code. Don't change it.
  2. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354)
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text.RegularExpressions;
  8.  
  9. namespace Rextester
  10. {
  11.     public class Program
  12.     {
  13.         public static void Main(string[] args)
  14.         {
  15.             //Your code goes here
  16.             char opt;
  17.             char LockDownIdentiFier;
  18.        
  19.             start:
  20.             Console.Clear();
  21.             Console.WriteLine("Enter LockDown Number");
  22.             LockDownIdentiFier = Convert.ToChar(Console.ReadLine());
  23.            
  24.             switch (LockDownIdentiFier){
  25.            
  26.                 case '1':
  27.                 Console.WriteLine("\nAll ages allowed to move around, subject to LGU rules");
  28.                 Console.WriteLine("\nInterzonal Travel is Allowed, subject to LGU rules");
  29.                 Console.WriteLine("\nExercise is Allowed for all ages");
  30.                 break;
  31.                
  32.                                 case '2':
  33.                 Console.WriteLine("\nAll ages allowed to to move around, subject to LGU rules");
  34.                 Console.WriteLine("\nInterzonal Travel is Allowed, subject to LGU rules");
  35.                 Console.WriteLine("\nExercise is Allowed for all ages");
  36.                 break;
  37.                
  38.                                 case '3':
  39.                 Console.WriteLine("\nAll ages allowed to move around, subject to LGU rules");
  40.                 Console.WriteLine("\nInterzonal Travel is Allowed, subject to LGU rules");
  41.                 Console.WriteLine("\nExercise is Allowed for all ages");
  42.                 break;
  43.                                 case '4':
  44.                 Console.WriteLine("\nAll ages younger than 18, older than 65, with comorbidities, pregnant must stay home");
  45.                 Console.WriteLine("\nInterzonal Travel is Allowed, for pserons not under stay-at-home orders");
  46.                 Console.WriteLine("\nExercise is Allowed for all ages but only near residence");
  47.                 break;
  48.                                 case '5':
  49.                 Console.WriteLine("nAll ages younger than 18, older than 65, with comorbidities, pregnant must stay home");
  50.                 Console.WriteLine("\nAllowed for authorized persons outside of residence (APORs)");
  51.                 Console.WriteLine("\nExercise is Not Allowed for all ages");
  52.                 break;
  53.  
  54.                 default:
  55.                 Console.WriteLine("Invalidate Input");
  56.                     break;
  57.             }
  58.                 Console.WriteLine("\nDo you want to Continue? Y/N");
  59.                 opt = Convert.ToChar(Console.ReadLine());
  60.                
  61.             switch (opt){
  62.                    
  63.                 case 'Y':
  64.                 case 'y':
  65.                 goto start;
  66.                
  67.                 default:
  68.                     Environment.Exit(0);
  69.                     break;
  70.                    
  71.             }
  72.             }
  73.         }
  74.     }
RAW Paste Data