QUESTION PROVIDE IN ATTACHMENT. KINDLY SEE ---------------------USE BELOW TEMPLATES WHILE MAKING SOLUTIONS----------------------- MAIN.CPP #include #include #include //#include "Hall.cpp" #include "HallBO.cpp" using namespace std; int main(){ int n, choice, p; string name, ownerName, hallName; int contactNumber; double costPerDay; static list hallList; list::iterator it; Hall h3; HallBO hbo; hallList = h3.getHallDetails(); do{ cout<<"1.Add\n"; cout<<"2.Remove\n"; cout<<"3.Display\n"; cout<<"Enter your choice\n"; cin>>choice; //fill the code }while(p==1); } HallBo.cpp #include #include "Hall.cpp" #include using namespace std; class HallBO{ public: Hall h; bool contains(list halls, string hallName){ //fill the code } void display(list halls){ //fill the code } }; Hall.cpp #include #include #include using namespace std; class Hall{ private: string name; int contactNumber; double costPerDay; string ownerName; public: Hall(){ } Hall(string name, int contactNumber, double costPerDay, string ownerName){ this->name = name; this->contactNumber = contactNumber; this->costPerDay = costPerDay; this->ownerName = ownerName; } list getHallDetails(){ list hallList; hallList.push_back(Hall("Chiltington",1798888137,30000,"Robert")); hallList.push_back(Hall("Kilmersdon",1761436767,22000,"James")); return hallList; } void setName(string name){ this->name=name; } string getName(){ return this->name; } void setContactNumber(int contactNumber){ this->contactNumber=contactNumber; } int getContactNumber(){ return this->contactNumber; } void setCostPerDay(double costPerDay){ this->costPerDay=costPerDay; } double getCostPerDay(){ return this->costPerDay; } void setOwnerName(string ownerName){ this->ownerName=ownerName; } string getOwnerName(){ return this->ownerName; } };
QUESTION PROVIDE IN ATTACHMENT. KINDLY SEE ---------------------USE BELOW TEMPLATES WHILE MAKING SOLUTIONS----------------------- MAIN.CPP #include #include #include //#include "Hall.cpp" #include "HallBO.cpp" using namespace std; int main(){ int n, choice, p; string name, ownerName, hallName; int contactNumber; double costPerDay; static list hallList; list::iterator it; Hall h3; HallBO hbo; hallList = h3.getHallDetails(); do{ cout<<"1.Add\n"; cout<<"2.Remove\n"; cout<<"3.Display\n"; cout<<"Enter your choice\n"; cin>>choice; //fill the code }while(p==1); } HallBo.cpp #include #include "Hall.cpp" #include using namespace std; class HallBO{ public: Hall h; bool contains(list halls, string hallName){ //fill the code } void display(list halls){ //fill the code } }; Hall.cpp #include #include #include using namespace std; class Hall{ private: string name; int contactNumber; double costPerDay; string ownerName; public: Hall(){ } Hall(string name, int contactNumber, double costPerDay, string ownerName){ this->name = name; this->contactNumber = contactNumber; this->costPerDay = costPerDay; this->ownerName = ownerName; } list getHallDetails(){ list hallList; hallList.push_back(Hall("Chiltington",1798888137,30000,"Robert")); hallList.push_back(Hall("Kilmersdon",1761436767,22000,"James")); return hallList; } void setName(string name){ this->name=name; } string getName(){ return this->name; } void setContactNumber(int contactNumber){ this->contactNumber=contactNumber; } int getContactNumber(){ return this->contactNumber; } void setCostPerDay(double costPerDay){ this->costPerDay=costPerDay; } double getCostPerDay(){ return this->costPerDay; } void setOwnerName(string ownerName){ this->ownerName=ownerName; } string getOwnerName(){ return this->ownerName; } };
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...
Related questions
Question
QUESTION PROVIDE IN ATTACHMENT. KINDLY SEE
---------------------USE BELOW TEMPLATES WHILE MAKING SOLUTIONS-----------------------
MAIN.CPP
#include <iostream> #include <stdio.h> #include<list> //#include "Hall.cpp" #include "HallBO.cpp" using namespace std; int main(){ int n, choice, p; string name, ownerName, hallName; int contactNumber; double costPerDay; static list<Hall> hallList; list<Hall>::iterator it; Hall h3; HallBO hbo; hallList = h3.getHallDetails(); do{ cout<<"1.Add\n"; cout<<"2.Remove\n"; cout<<"3.Display\n"; cout<<"Enter your choice\n"; cin>>choice; //fill the code }while(p==1); } |
HallBo.cpp
#include<iostream> #include "Hall.cpp" #include<list> using namespace std; class HallBO{ public: Hall h; bool contains(list <Hall> halls, string hallName){ //fill the code } void display(list<Hall> halls){ //fill the code } }; |
Hall.cpp
#include <iostream> #include <stdio.h> #include<list> using namespace std; class Hall{ private: string name; int contactNumber; double costPerDay; string ownerName; public: Hall(){ } Hall(string name, int contactNumber, double costPerDay, string ownerName){ this->name = name; this->contactNumber = contactNumber; this->costPerDay = costPerDay; this->ownerName = ownerName; } list<Hall> getHallDetails(){ list<Hall> hallList; hallList.push_back(Hall("Chiltington",1798888137,30000,"Robert")); hallList.push_back(Hall("Kilmersdon",1761436767,22000,"James")); return hallList; } void setName(string name){ this->name=name; } string getName(){ return this->name; } void setContactNumber(int contactNumber){ this->contactNumber=contactNumber; } int getContactNumber(){ return this->contactNumber; } void setCostPerDay(double costPerDay){ this->costPerDay=costPerDay; } double getCostPerDay(){ return this->costPerDay; } void setOwnerName(string ownerName){ this->ownerName=ownerName; } string getOwnerName(){ return this->ownerName; } }; |
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 8 steps with 4 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY