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:- "<

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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

}

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY