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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started