/* Answer to erroneous Problem #4 the purpsoe of the program is to calculate the formula C based on the rules shown: 1/ 2 10 - (A - 4) C= --------------------- + A B - 2 Rule #1: B cannot be 2 Rule #2: A-4 cannot be negative */ #include #include using namespace std; int main() { cout<<"Enter a value for B? "; double B; cin>>B; cout<<"Enter a value for A? "; double A; cin>>A; if (B == 2) { cout<<"B cannot be 2\n"; } else { if (A - 4 < 0) { cout<<"A - 4 cannot be negative\n"; } else { double C; C= (10 - sqrt(A - 4)) / (B - 2); cout<<"C= "<