1 2 3 4 5 6 7 8 9
|
void Manager::printYearly(int yearsIn) {
float yldFund = ((avgFund - startValue)/startValue) * 100;
float yldBond = ((avgBond - startValue)/startValue) * 100;
printf("-%*i -%*i -%*8.2f -%*8.2f -%*8.2f -%*3.1f%% -%*8.2f -%*8.2f -%*8.2f -%*3.2f%% -%*8.2f",
10, yearsIn, 10, (int)(inflationRate*100), '%', 10, (float)avgFund, 10,
(float)minValFund->getValue(), 10, (float)maxValFund->getValue(), 10,
yldFund, 10, (float)avgBond, 10, (float)minValBond->getValue(),
10, (float)maxValBond ->getValue(), 10, yldBond, 10, (float)avgBury);
}
|