Created the 2023_10_26 unit
This commit is contained in:
22
units/2023_10_26/solution.cpp
Normal file
22
units/2023_10_26/solution.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
// Variablendeklaration
|
||||
double Umsatz, Provision;
|
||||
|
||||
// Eingaben abfragen
|
||||
cout << "Geben Sie den Umsatz ein: ";
|
||||
cin >> Umsatz;
|
||||
|
||||
// Berechnung
|
||||
if (Umsatz < 100000) {
|
||||
Provision = Umsatz * 0.05;
|
||||
} else {
|
||||
Provision = Umsatz * 0.75;
|
||||
}
|
||||
|
||||
// Ausgabe
|
||||
cout << "Die Provision beträgt: " << Provision << " Euro." << endl;
|
||||
}
|
Reference in New Issue
Block a user