#include <iostream>
#include <conio.h>
using namespace std;
const int N = 6;

// Aufgabenteil a)
float gesamtStunden(float stunden[N])
{
//Selbst ausfüllen
}

// Aufgabenteil b
void gewinnAufteilen(float geld[N], float stunden[N], float P)
{
//Selbst ausfüllen
}

// Aufagbenteil c)
float berechneVerhaeltnisse(float verhaeltnis[N][N],float stunden[N])
{
// Selbst ausfüllen
}


main()
{
      // Array für die Stundenanzahl der einzelnen Studenten anlegen
      float stunden[N] = {4,42,16, 8, 23, 15};
      float geld[N];
      float P = 10000;
      // Testen von Aufgabenteil a)
      cout <<  "Test von Aufgabenteil a: \t"; 
      float test_a = gesamtStunden(stunden);
      if(test_a == 108) cout << "OK" << endl;
      else cout << "Sorry, da st irgendwo ein Fehler..." << endl;
      
      // Testen von Aufgabenteil b)
      cout << endl << "Test von Aufgabenteil b: " << endl; 
      gewinnAufteilen(geld, stunden, P);
      float test_b = 0;
      for(int i =0; i<N; i++)
      {
              test_b = test_b + geld[i];
      }
      cout << "Erwartete Werte: [370.37] [3888.89] [1481.48] [740.741] [2129.63] [1388.89]" << endl;
      cout << "Erhaltene Werte: ";
      for(int i=0; i<N; i++)
      {
              cout << "[" << geld[i] << "] ";
      }
      cout << endl << endl;
      
      // Testen von Aufgabenteil c)
      cout << "Test von Aufgabenteil c: \t";
      float verhaeltnis[N][N];
      float test_c = berechneVerhaeltnisse(verhaeltnis, stunden);
      if(test_c == 10.5) cout << "OK" << endl;
      else cout << "Sorry, da st irgendwo ein Fehler..." << endl;
      
      getch();
}
