Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. //si vogliono gestire le auto che entrano del parcheggio
  2. //menu 1)entra 2)n auto prsenti 3)info auto
  3. //auto: targa, data, ora
  4. //parcheggio: nome, auto
  5.  
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11.  
  12. namespace po_es_12
  13. {
  14. class Program
  15. {
  16. static void Main(string[] args)
  17. {
  18. int scelta;
  19. Parcheggio parcheggio = new Parcheggio(AggiungiDati.InserisciNomeParcheggio());
  20.  
  21. do
  22. {
  23. Console.Clear();
  24. Console.WriteLine("1)Entra\n2)Auto Presenti\n3)Info auto");
  25. scelta = Convert.ToInt32(Console.ReadLine());
  26.  
  27. switch (scelta)
  28. {
  29. case 1:
  30. parcheggio.EntraAuto(new Automobili(AggiungiDati.InserisciTarga(), DateTime.Now.ToString()));
  31. break;
  32.  
  33. case 2:
  34. parcheggio.NumeroAuto();
  35. break;
  36.  
  37. case 3:
  38. parcheggio.InfoAutoP();
  39. break;
  40. }
  41.  
  42. } while (scelta != 0);
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement