using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Übungen_LF6_WinFormanwendung { class rabattsatz { public double berechneRabatt(double rechsumme) { double rabatt = 0; if (rechsumme > 100) rabatt = 3; else if (rechsumme > 50) rabatt = 2; else rabatt = 0; return rabatt; } } }