I need to draw a flowchart for this cod #include #include using namespace std; int main(){ // For printing welcome message cout<<"-------------------------------------------"<>id; cout<<"Owner contact number: "; cin>>cn; cout<>dogname; //getline(cin, dogname); // If you want to input name with whitespaces, use getline cout<<"Dog breed: "; //getline(cin, dogbreed); cin>>dogbreed; cout<<"Dog age: "; cin>>dogage; cout<<"Dog weight in pounds(lb): "; cin>>dogweight; cout<<"Your bill is:- "<=15 && dogweight<=30) fee = 75; else if(dogweight>=31 && dogweight<80) fee = 105; else if(dogweight>=80) fee = 125; // Printing the bill cout<<"Owner ID:- "<
I need to draw a flowchart for this cod
#include<iostream>
#include<string>
using namespace std;
int main(){
// For printing welcome message
cout<<"-------------------------------------------"<<endl;
cout<<"| |"<<endl;
cout<<" Welcome to barking lot dog day care center"<<endl;
cout<<"| |"<<endl;
cout<<"-------------------------------------------"<<endl;
cout<<"Please provide ID number and contact number of owner: "<<endl;
int id;
// Input details about owner
string cn;
cout<<"Owner Id: ";
cin>>id;
cout<<"Owner contact number: ";
cin>>cn;
cout<<endl;
cout<<"Please provide Dog Details"<<endl;
string dogname;
string dogbreed;
int dogage;
int dogweight;
// Input details about dog
cout<<"Dog name: ";
cin>>dogname;
//getline(cin, dogname); // If you want to input name with whitespaces, use getline
cout<<"Dog breed: ";
//getline(cin, dogbreed);
cin>>dogbreed;
cout<<"Dog age: ";
cin>>dogage;
cout<<"Dog weight in pounds(lb): ";
cin>>dogweight;
cout<<"Your bill is:- "<<endl;
int fee; // Calculation total fees depending upon weight of dog
if(dogweight<15)
fee = 55;
else if(dogweight>=15 && dogweight<=30)
fee = 75;
else if(dogweight>=31 && dogweight<80)
fee = 105;
else if(dogweight>=80)
fee = 125;
// Printing the bill
cout<<"Owner ID:- "<<id<<", Owner Contact Number:- "<<cn<<endl;
cout<<"Dog name:- "<<dogname<<", Dog Breed:- "<<dogbreed<<", Dog age:- "<<dogage<<", Dog breed"<<dogbreed<<endl;
cout<<"Your payable bill amount is:- £"<<fee<<endl;
cout<<"Thank you for visiting Barking Lot Dog Care Center";
return 0;
// End of program
}
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)