inital commit, adding all school projects
This commit is contained in:
29
PROV/main.cpp
Normal file
29
PROV/main.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <windows.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
cout << fixed << setprecision(2);
|
||||
|
||||
cout << "\t \t" << "Umsatzprovision" << endl;
|
||||
cout << "\t \t" << "---------------" << endl;
|
||||
|
||||
float fUmsatz = 0;
|
||||
float fProvisionssatz = 0.05;
|
||||
float fProvision = 0;
|
||||
cout << endl << "so bürschle! wie viel geld haste denn verdient? ";
|
||||
cin >> fUmsatz;
|
||||
|
||||
if (fUmsatz >= 100000) {
|
||||
fProvisionssatz = 0.07;
|
||||
}
|
||||
|
||||
fProvision = fUmsatz * fProvisionssatz;
|
||||
cout << "Du bekommst bei einem Provisionssatz von " << fProvisionssatz * 100 <<"% ganze " << fProvision << " Eur. Viel Spaß damit, großer!" << endl;
|
||||
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user