-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
54 lines (44 loc) · 1.36 KB
/
Program.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Taxi
{
class Program
{
static void Main(string[] args)
{
Taxi taxi1 = new Taxi();
Taxi taxi2 = new Taxi();
Taxi taxi3 = new Taxi();
Taxi taxi4 = new Taxi();
taxi1.DriverName = " Dion ";
taxi1.OnDuty = true;
taxi1.NumPassenger = 13;
taxi2.DriverName = " Andi ";
taxi2.OnDuty = true;
taxi2.NumPassenger = 15;
taxi3.DriverName = " Tomo ";
taxi3.OnDuty = false;
taxi3.NumPassenger = 17;
taxi4.DriverName = " Aldi ";
taxi4.OnDuty = false;
taxi4.NumPassenger = 11;
taxi1.TaxiInfo();
taxi1.PickUpPassenger();
taxi1.DropOffPassanger();
taxi2.TaxiInfo();
taxi2.PickUpPassenger();
taxi2.DropOffPassanger();
taxi3.TaxiInfo();
taxi3.PickUpPassenger();
taxi3.DropOffPassanger();
taxi4.TaxiInfo();
taxi4.PickUpPassenger();
taxi4.DropOffPassanger();
Console.WriteLine("\nPress any key to exit");
Console.ReadKey();
}
}
}