Answer:
The reason for the error is that the pay is declared and initialized as double, which should be a larger float data type and the main function should be in curly braces. The class should best be declared and initialized before the main function.
Step-by-step explanation:
class Fvp{
Fvp( double earning ){
double pay = earning;
float bimth = pay/24;
float biweek = pay/26;
}
}
int main( ) {
Fvp john(32500.00);
cout << '' Annual earnings: $'' << john.pay << endl;
cout << '' Bimonthly earnings: $'' << john.bimth << endl;
cout << '' Biweekly earnings: $'' << john.biweek << endl;
}