-
Notifications
You must be signed in to change notification settings - Fork 0
/
BookingFilms.cs
102 lines (95 loc) · 3.55 KB
/
BookingFilms.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO;
namespace ConsoleApp1
{
class BookingFilms
{
public void Films()
{
BookingFilms Seats = new BookingFilms();
Console.Clear();
Console.WriteLine();
Console.WriteLine("==================================================");
Console.WriteLine();
Console.Write("Title: Avengers: EndGame \nLength: 3h 2m \nAge Rating: PG \nDate/Time: 12:30 13/12/19 \nScreen No: 1");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("==================================================");
Console.WriteLine();
Console.Write("Title: Joker \nLength: 2h 2m \nAge Rating: R \nDate/Time: 16:30 13/12/19 \nScreen No: 2");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("==================================================");
Console.WriteLine();
Console.Write("Title: Toy Story 4 \nLength: 1h 40m \nAge Rating: U \nDate/Time: 18:30 13/12/19 \nScreen No: 3");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("==================================================");
Console.WriteLine();
Console.WriteLine("Please choose one of the above films:");
Console.WriteLine();
Console.WriteLine("[1] Avengers: Endgame");
Console.WriteLine("[2] Joker");
Console.WriteLine("[3] Toy Story 4");
int choice = int.Parse(Console.ReadLine());
if (choice == 1)
{
// FILM CHOICE AVENGERS
Console.WriteLine();
Seats.Seats("Avengers: Endgame", "3h 2m", "PG", "12:30 13/12/19", "1");
Thread.Sleep(2000);
}
else if (choice == 2)
{
// FILM CHOICE JOKER
Console.WriteLine();
Seats.Seats("Joker", "2h 2m", "R", "16:30 13/12/19", "2");
Thread.Sleep(2000);
}
else if (choice == 3)
{
// FILM CHOICE TOY STORY 4
Console.WriteLine();
Seats.Seats("Toy Story 4", "1h 40m", "U", "18:30 13/12/19", "3");
Thread.Sleep(2000);
}
else
{
// BACK TO OPTIONS
Films();
}
}
public void Seats(string Title, string Length, string AR, string DT, string Screen)
{
BookingSeats Seats = new BookingSeats();
Console.WriteLine();
Console.WriteLine("Please choose one of the following choice of seats:");
Console.WriteLine();
Console.WriteLine("[1] Standard Seats - £9.99");
Console.WriteLine("[2] VIP Seats - £15.00");
int choice = int.Parse(Console.ReadLine());
if (choice == 1)
{
// FILM CHOICE AVENGERS
Console.WriteLine();
Seats.Standard(Title, Length, AR, DT, Screen);
Thread.Sleep(2000);
}
else if (choice == 2)
{
// FILM CHOICE JOKER
Console.WriteLine();
Seats.VIP(Title, Length, AR, DT, Screen);
Thread.Sleep(2000);
}
else
{
// BACK TO FILM OPTIONS
Films();
}
}
}
}