Advertisement
Guest User

NView

a guest
Jan 21st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 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. namespace FlightReservation
  8. {
  9. public class FlightsView
  10. {
  11.  
  12. public FlightsView()
  13. {
  14. Console.WriteLine("*****FLIGHT MAINTENANCE*****\n\n");
  15. Console.WriteLine("*****What do you want to do?*****\n");
  16. Console.WriteLine("1. ADD A FLIGHT.\n");
  17. Console.WriteLine("2. SEARCH A FLIGHT.\n");
  18. Console.WriteLine("3. GO BACK.\n");
  19. Console.WriteLine("Choose an option!\n");
  20.  
  21. }
  22.  
  23. public void addFlightView() {
  24. Console.WriteLine("*****ADD A FLIGHT*****\n\n");
  25. Console.WriteLine("*****PLEASE INPUT THE FOLLOWING DETAILS*****\n");
  26. }
  27.  
  28. public void searchFlightView()
  29. {
  30. Console.WriteLine("*****Search a FLIGHT*****\n\n");
  31. Console.WriteLine("*****What do you want to do?*****\n");
  32. Console.WriteLine("1. Search by Flight Number.\n");
  33. Console.WriteLine("2. Search by Airline Code.\n");
  34. Console.WriteLine("3. Search by Origin/Destination.\n");
  35. Console.WriteLine("Choose an option!\n");
  36. }
  37.  
  38. public string getAirlineCode()
  39. {
  40. Console.WriteLine("Input Airline Code: \n");
  41. string input = Console.ReadLine();
  42. return input;
  43. }
  44.  
  45. public int getFlightNo()
  46. {
  47. Console.WriteLine("Input Flight Number: \n");
  48. int input = int.Parse(Console.ReadLine());
  49. return input;
  50. }
  51.  
  52. public string getArriveStation()
  53. {
  54. Console.WriteLine("Input Arrival Station: \n");
  55. string input = Console.ReadLine();
  56. return input;
  57. }
  58.  
  59. public string getDepartStation ()
  60. {
  61. Console.WriteLine("Input Departure Station: \n");
  62. string input = Console.ReadLine();
  63. return input;
  64. }
  65.  
  66. public int getSTA()
  67. {
  68. Console.WriteLine("Input Scheduled Time of Arrival: \n");
  69. int input = int.Parse(Console.ReadLine());
  70. return input;
  71. }
  72.  
  73. public int getSTD()
  74. {
  75. Console.WriteLine("Input Scheduled Time of Departure: \n");
  76. int input = int.Parse(Console.ReadLine());
  77. return input;
  78. }
  79.  
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement