コード例 #1
0
 public static void Task_4(Gift g)   //Calculate the weight of the gift and if the weight is bigger than 1kg, delete the haviest candy in the gift
 {
     Console.WriteLine("The weight of the gift is " + g.CalculateWeight() + " gramms.");
     Console.WriteLine("The price of the gift is " + g.CalculatePrice() + " rubles.");
 }
コード例 #2
0
 public static void Task_5(Gift g)   //Form output file and try to write each element and the sum of the gift
 {
     g.OutPutFile(@"E:\hackerman\txtfiles\output.txt");
 }
コード例 #3
0
 public static void Task_1(Gift g)   //add any two fruit.
 {
     g.AddFruit();
     g.OutPut();
 }