// Übung 1 - Aufgabe A (effektiver Zins) // g++ -Wno-deprecated u1A.cc #include main() { const float zinsfuss = 5.3; // Zinsfuss in % // Wohnbauförderungsgesetz 1984: Zinsperiode Okt.03 - Mar.04 float kapital, // eingesetztes Kapital zins_einf; // einfacher Zins int tage; // Anzahl der Tage // Dateneingabe cout << endl; cout << " Eingabe des eingesetzten Kapitals: "; cin >> kapital; cout << endl; cout << " Eingabe der Tagesanzahl : "; cin >> tage; // Formel zins_einf = kapital * zinsfuss * tage / 36000; // Datenausgabe cout << endl << endl << endl; cout << " Kapital : " << kapital << endl; cout << " Tage : " << tage << endl; cout << " Zinsfuss : " << zinsfuss << endl; cout << endl; cout << " einfacher Zins : " << zins_einf << endl; cout << endl; }