aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSan Jacobs2024-01-01 20:00:12 +0100
committerSan Jacobs2024-01-01 20:00:12 +0100
commit97d46c98a2bff07155f2c7d6cfb9e63b81d10c2d (patch)
treeeb49eac13ed40009bf3c727bb737f2e6edc27d87
parentb99647e67bb4be7367b111ecdac62b1ee9f52f7e (diff)
downloadsatscalc-97d46c98a2bff07155f2c7d6cfb9e63b81d10c2d.tar.gz
satscalc-97d46c98a2bff07155f2c7d6cfb9e63b81d10c2d.tar.bz2
satscalc-97d46c98a2bff07155f2c7d6cfb9e63b81d10c2d.zip
Clarified what includes and doesn't include social costs
-rwxr-xr-xsrc/main.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 41577d9..8dc7a50 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -235,12 +235,18 @@ done:
std::cout << "Offset day at least partially set between 22:00 and 06:00.\nMinimum price is full dayrate. [ยง6.12A]\n";
}
}
- std::cout << "Price of day " << ii+1 << ": " << day_price << std::endl;
+ std::cout << "Price of day " << ii+1 << ": " << day_price;
+ if(social_costs > 1) std::cout << " (eks.sos)";
+ std::cout << std::endl;
total_sum += day_price;
}
- std::cout << "\nSum: " << total_sum;
- std::cout << "\nTotal: " << total_sum*social_costs << std::endl;
+ if(social_costs > 1) {
+ std::cout << "\nEks.sos: " << total_sum;
+ std::cout << "\nTotal, ink.sos: " << total_sum*social_costs << std::endl;
+ } else {
+ std::cout << "\nTotal: " << total_sum*social_costs << std::endl;
+ }
std::cin.get();
std::cin.ignore();