if (option == 1)
CAT_BATH_OPT();
else if (option == 2)
VET_OPT();
else if (option == 3)
KENNEL_OPT();
else if (option == 4)
total = bath + vetVisit + kennelService;
cout << "Your total is = $" << total << endl;
if (option > 1 || option < 4)
cout << "not valid" << endl;
}
// end if and while
if (petType == 2)
{
displayDogs();
cout << "Enter 1, 2, 3, 4, 5: ";
cin >> option;
}
while (option > 0 && option < 6)
{
if (option == 1)
DOG_BATH_OPT();
else if (option == 2)
VET_OPT();
else if (option == 3)
KENNEL_OPT();
else if (option == 4)
NAIL_OPT();
else if (option == 5)
{
total = bath + vetVisit + kennelService + TOE_NAIL_CLIP;
cout << "Your total is = $: " << total << endl;
}
} // end while and end if
if (option != 1 && option != 2)
cout << "Not valid" << endl;
// end if
system("pause");
return 0;
} // end of main fnc
//// ********fnc definitions********
void displayCats()
{
cout << "Bath 1" << endl;
cout << "Vet visit 2" << endl;
cout << "Kennel service 3" << endl;
cout << "Your Total Bill 4 " << endl;
}// end of displayCats
void displayDogs()
{
cout << "Bath 1" << endl;
cout << "Vet visit 2" << endl;
cout << "Kennel service 3" << endl;
cout << "Nail Clipping 4" << endl;
cout << "Your Total Bill 5" << endl;
} // end of displayDogs
double CAT_BATH_OPT()
{
int sub = 1;
bath = bathPrices[3];
total = total + bath;
return bath;
}//end of catBathOption function
double DOG_BATH_OPT()
{
cout << "Enter 1 for Large dog or 2 for Small dog: ";
cin >> bath;
if (bath == 1)
bath = bathPrices[0];
else if (bath == 2)
bath = bathPrices[1];
else if (bath < 0 && bath > 3)
cout << "Invalid" << endl;
total = total + bath;
cout << "total" << total << endl;
return bath;
//end if
}//end of DOG_BATH_OPT
double VET_OPT()
{
total = total + vetVisit;
return vetVisit;
} //end of VET_OPT
double KENNEL_OPT()
{
int days = 0;
double TOT_KENNEL = 0.0;
cout << "Enter Numer of Days in Kennel: ";
cin >> days;
TOT_KENNEL = (kennelService*days);
total = total + TOT_KENNEL;
return TOT_KENNEL;
} //end of KENNEL_OPT
double NAIL_OPT()
{
int option = 0;
total = total + TOE_NAIL_CLIP;
system("pause");
cout << "are you finished? 1 for yes and 2 for no";
cin >> option;
if (option == 1)
cout << "total " << total << endl;
else if (option == 2)
cout << "total " << total << endl;
return TOE_NAIL_CLIP;
// end if
} //end of NAIL_OPT
double CALC_TOTAL()
{
total = bath + vetVisit + TOT_KENNEL + TOE_NAIL_CLIP;
return total;
} //end calc total function
if (option == 1)
DOG_BATH_OPT();
else if (option == 2)
VET_OPT();
else if (option == 3)
KENNEL_OPT();
else if (option == 4)
NAIL_OPT();
else if (option == 5)
total = bath + vetVisit + kennelService + TOE_NAIL_CLIP;
cout << "Your total is = $: " << total << endl;
} // end while and end if
if (option != 1 && option != 2)
cout << "Not valid" << endl;
// end if
system("pause");
return 0;
} // end of main fnc
//// ********fnc definitions********
void displayCats()
{
cout << "Bath 1" << endl;
cout << "Vet visit 2" << endl;
cout << "Kennel service 3" << endl;
cout << "Your Total Bill 4 " << endl;
}// end of displayCats
void displayDogs()
{
cout << "Bath 1" << endl;
cout << "Vet visit 2" << endl;
cout << "Kennel service 3" << endl;
cout << "Nail Clipping 4" << endl;
cout << "Your Total Bill 5" << endl;
} // end of displayDogs
double CAT_BATH_OPT()
{
int sub = 1;
bath = bathPrices[3];
total = total + bath;
return bath;
}//end of catBathOption function
double DOG_BATH_OPT()
{
cout << "Enter 1 for Large dog or 2 for Small dog: ";
cin >> bath;
if (bath == 1)
bath = bathPrices[0];
else if (bath == 2)
bath = bathPrices[1];
else if (bath > 0 && bath < 3)
cout << "Invalid" << endl;
total = total + bath;
cout << "total" << total << endl;
return bath;
//end if
}//end of DOG_BATH_OPT
double VET_OPT()
{
total = total + vetVisit;
return vetVisit;
} //end of VET_OPT
double KENNEL_OPT()
{
int days = 0;
double TOT_KENNEL = 0.0;
cout << "Enter Numer of Days in Kennel: ";
cin >> days;
TOT_KENNEL = (kennelService*days);
total = total + TOT_KENNEL;
return TOT_KENNEL;
} //end of KENNEL_OPT
double NAIL_OPT()
{
int option = 0;
total = total + TOE_NAIL_CLIP;
system("pause");
cout << "are you finished? 1 for yes and 2 for no";
cin >> option;
if (option == 1)
cout << "total " << total << endl;
else if (option == 2)
cout << "total " << total << endl;
return TOE_NAIL_CLIP;
// end if
} //end of NAIL_OPT
double CALC_TOTAL()
{
total = bath + vetVisit + TOT_KENNEL + TOE_NAIL_CLIP;
return total;
} //end calc total function