This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/software/1_sem/customer_management/customer_management/Program.cs

34 lines
743 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace customer_management
{
class Program
{
static void Main(string[] args)
{
PrivatCustomer pc = new PrivatCustomer();
pc.ID = 5;
pc.Adresse = "Untertrasse 14";
pc.Birthday = Convert.ToDateTime("1989-07-31");
Console.WriteLine(pc.ReturnBirthday());
BusinessCustomer bc = new BusinessCustomer();
bc.ID = 6;
bc.MwstRequired = true;
bc.MwstValue = Convert.ToDecimal("8.0");
Console.WriteLine(bc.CalculateMwstValue(120));
Console.ReadKey();
}
}
}