-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoldenPackage.cs
66 lines (63 loc) · 2.38 KB
/
GoldenPackage.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
using System;
namespace Tourism_System__Sda_Project_
{
public class GoldenPackage : I_TourPackage
{
private static int totalGoldPackagesSold = 0;
private static int totalgRevenue = 0;
private static int latestgRevenue = 0;
private static int oldgRevenue = 0;
private string gLocation = "any";
private int NoofBeds = 2;
private string FoodIncluded = "No";
private int price = 10000;
public GoldenPackage()
{
}
public GoldenPackage(string tempLoc)
{
gLocation = tempLoc;
}
public void setLocation(string tempLoc)
{
gLocation = tempLoc;
}
public int getPrice()
{
return price;
}
public void DisplayPackageDetails()
{
Console.WriteLine("╔════════════════════════════════════════════════╗");
Console.WriteLine("║ Gold Package: Luxury travel experience ║");
Console.WriteLine("╚════════════════════════════════════════════════╝");
Console.WriteLine();
Console.WriteLine(" Travel Destination: " + gLocation);
Console.WriteLine(" Beds Included: " + NoofBeds);
Console.WriteLine(" Food Included: " + FoodIncluded);
Console.WriteLine(" Price of Package: " + price);
Console.WriteLine("-------------------------------------------------");
Console.WriteLine();
}
public void getOldRev()
{
Console.WriteLine("Old Revenue of Gold Package is: " + oldgRevenue);
}
public void getNewRev()
{
Console.WriteLine("New Revenue of Gold Package is: " + latestgRevenue);
}
public int GetTotalPackagesSent()
{
return totalGoldPackagesSold;
}
public int CalculateOverallRevenue(int goldPackagesSold)
{
oldgRevenue = totalgRevenue;
totalGoldPackagesSold += goldPackagesSold;
latestgRevenue = goldPackagesSold * price;
totalgRevenue += latestgRevenue;
return totalgRevenue;
}
}
}