inital commit, adding all school projects
This commit is contained in:
38
BlackFriday/main.cpp
Normal file
38
BlackFriday/main.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <windows.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
cout << fixed << setprecision(2);
|
||||
|
||||
cout << "\t \t";
|
||||
cout << "R A B A T T R E C H N E R" << endl;
|
||||
cout << "\t \t";
|
||||
cout << "-------------------------";
|
||||
cout << endl;
|
||||
|
||||
float fBestellwert = 0;
|
||||
cout << "Bitte geben Sie den Gesamtwert der Bestellung ein: ";
|
||||
cin >> fBestellwert;
|
||||
|
||||
cout << endl;
|
||||
|
||||
if (fBestellwert >=1000) {
|
||||
cout << "Es wurde ein Rabatt von 10% angewendet!" << endl;
|
||||
cout << "Der zu zahlende Betragt beträgt somit: \t\t";
|
||||
|
||||
fBestellwert *= 0.9;
|
||||
cout << fBestellwert << " EUR.";
|
||||
} else {
|
||||
cout << "Der zu zahlende Betrag beträgt " << fBestellwert << "EUR.";
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
system("pause");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user