Question: I'm trying to compile a simple C++ script to determine the bill from a pet store shopping trip, I've done the following but keep getting

I'm trying to compile a simple C++ script to determine the bill from a pet store shopping trip, I've done the following but keep getting an error... help?

// This program is for calculating pet store total bill #include using namespace std;

int main() { double leash, collar, food, total

// Get the price of the leash.

cout << "What was the cost of the leash? "; cin >> leash;

// Get the price of the collar.

cout << "What was the cost of the collar? "; cin >> collar;

// Get the price of the bag of food. cout << "What was the cost of the bag of food?"; cin >> food;

// Calculate the total cost of the pet shop bill total = leash + collar + food;

// Display the total cost of the shopping trip. cout << "Your total pet store bill comes to $" << total << endl; return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!