#include const double tax = .40; // .40 is a double, MUST initialize a constant double getincome (); int getdependents (); char getFoot (); double taxme (double bill, double rate) { return 0.0; } void main() { double total; int dependents; char footWidth; // foot_width footWidth myFunnyValentine // really procedures...but anyway... do { footWidth = getFoot(); dependents = getdependents(); total = getincome(); cout << taxme(total); } while (1); } char getFoot () { char width; int bad; do { cout << "What is your foot width ? "; cin >> width; bad = 1; if ((width == 'a') || (width == 'b') || (width == 'c')) bad = 0; } while (bad); return width; } double taxme (double bill) { return(bill + bill * tax ); } double taxme (int bill) { return(bill + bill * tax ); } int getdependents () { int dependents; do { cout << "How many dependents do you have ? "; cin >> dependents; } while (( dependents > 50 ) || ( dependents < 0)); // while (! (( dependents < 50) && (dependents > 0))) return dependents; } double getincome () { int bad; double income; do { cout << "How much money did you make ? "; cin >> income; bad = 0; if (income < 0) { cout << "postitive values only\n"; bad = 1; } else if (income < 10) { cout << "I don't believe you, you will be audited for sure.\n"; bad = 1; } } while (bad); // bad is true if it is NOT zero! cout << "thank you!\n"; return income; }