#include <iostream>
#include <cstdlib>
using namespace std;
int main( )
{
double id;
string ownerName;
string breed;
double age;
double weight;
double weeklyFee;
cout << "Please enter owner's ID: ";
cin >> id;
cout << "Please enter owner's name: ";
cin >> ownerName;
cout << "Please enter dog's breed (no space in input, use an underscore instead; For example Great_Dane): ";
cin >> breed;
cout << "Please enter dog's age: ";
cin >> age;
cout << "Please enter dog's weight: ";
cin >> weight;
if(weight < 15)
weeklyFee = 55.00;
else if((weight >= 15) &&(weight<=30))
weeklyFee = 75.00;
else if((weight>30)&&(weight<=80))
weeklyFee = 105.00;
else
weeklyFee = 125.00;
cout << "Owner Name: "<< ownerName << endl;
cout << "Owner ID: "<< id << endl;
cout << "Dog Breed: "<< breed << endl;
cout << "Dog Age: "<< age << endl;
cout << "Dog Weight: "<< weight << endl;
cout << "Weekly Fee: "<< "$" << endl;
system("PAUSE");
return 0;
}
You forgot to add weeklyFee to the last line. It should be:
cout << "Weekly Fee: " << "$" << weeklyFee << endl;