Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
PiaMethod::totalEarnCal Method

Computes total earnings and AME or AIME.

C++
void totalEarnCal(
    int first, 
    int last, 
    int number
);
Parameters 
Description 
int first 
First year of earnings. 
int last 
Last year of earnings. 
int number 
Number of years to be selected. 

Highest earning years must already be selected. If there are not enough selected years, years of zero earnings will be added.

Exceptions 
Description 
PiaException of type PIA_IDS_METHOD if there is an inconsistency in the number of years desired and the ordered earnings (only in debug mode). 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!