#include using namespace std; int LOG_LEVEL = 0; const string SEASONS[]{"Spring","Summer","Fall","Winter"}; void PrintMap(); void Production(); void SectorProduce(int x, int y); int main() { int year, season; for (year = 1; year < 10; year++) { for(season = 0; season < 4; season++) { if (year == 2 and season == 0) { LOG_LEVEL =1; } if (year == 3 and season == 0) { LOG_LEVEL =2; } if (LOG_LEVEL < 3) { cout << SEASONS[season] << " " << year << endl; cout << endl; cout << endl; } PrintMap(); cout << endl; Production(); cout << endl; } } return 0; } void Production(){ int x,y; for(y = 0; y < 6; y++) { for (x = 0; x < 5; x++) { SectorProduce(x,y); } } } void SectorProduce(int x, int y){ if (LOG_LEVEL < 1) { cout << "Producing in sector " << x << ", " << y << endl; } return; } void PrintMap(){ int x,y; if (LOG_LEVEL < 2) { for(y = 0; y < 6; y++) { for (x = 0; x < 5; x++) { cout << "."; } cout << endl; } } return; }