You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
528 B
C#
26 lines
528 B
C#
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;
|
|
}
|
|
}
|
|
}
|