Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
(After reading the instructions given in the pictures attached, read the following)
Class members
doctorType Class must contain at least these functions
doctorType(string first, string last, string spl); //First Name, Last Name, Specialty
doctorType Class must contain at least these functions
doctorType(string first, string last, string spl); //First Name, Last Name, Specialty
void print() const; //Formatted Display First Name, Last Name, Specialty
void setSpeciality(string); //Set the doctor’s Specialty
string getSpeciality(); //Return the doctor’s Specialty
patientType Class must contain at least these functions
void setInfo(
string id, string fName, string lName,
int bDay, int bMth, int bYear,
string docFrName, string docLaName, string docSpl,
int admDay, int admMth, int admYear,
int disChDay, int disChMth, int disChYear);
void setID(string);
string getID();
void setBirthDate(int dy, int mo, int yr);
int getBirthDay();
int getBirthMonth();
int getBirthYear();
void setDoctorName(string fName, string lName);
void setDoctorSpl(string);
string getDoctorFName();
string getDoctorLName();
string getDoctorSpl();
void setAdmDate(int dy, int mo, int yr);
int getAdmDay();
int getAdmMonth();
int getAdmYear();
void setDisDate(int dy, int mo, int yr);
void setSpeciality(string); //Set the doctor’s Specialty
string getSpeciality(); //Return the doctor’s Specialty
patientType Class must contain at least these functions
void setInfo(
string id, string fName, string lName,
int bDay, int bMth, int bYear,
string docFrName, string docLaName, string docSpl,
int admDay, int admMth, int admYear,
int disChDay, int disChMth, int disChYear);
void setID(string);
string getID();
void setBirthDate(int dy, int mo, int yr);
int getBirthDay();
int getBirthMonth();
int getBirthYear();
void setDoctorName(string fName, string lName);
void setDoctorSpl(string);
string getDoctorFName();
string getDoctorLName();
string getDoctorSpl();
void setAdmDate(int dy, int mo, int yr);
int getAdmDay();
int getAdmMonth();
int getAdmYear();
void setDisDate(int dy, int mo, int yr);
int getDisDay();
int getDisMonth();
int getDisYear();
int getDisMonth();
int getDisYear();
billType Class must contain at least these functions
billType(string id = "", //Patient ID
double phCharges = 0, //Pharmacy Charges
double rRent = 0, //Room rental
double docFee = 0); //Doctor Fees
void printBill() const;
void setInfo(string, //Patient ID
double, //Pharmacy Charges
double, //Room rental
double); //Doctor Fees
void setID(string);
string getID();
void setPharmacyCharges(double);
double getPharmacyCharges();
void updatePharmacyCharges(double);
void setRoomRent(double);
double getRoomRent();
void updateRoomRent(double);
void setDoctorFee(double);
double getDoctorFee();
void updateDoctorFee(double);
double billingAmount();
The instructors test program will construct arrays of 10 doctorType, 10 patientType and 20 billType
instances and from this data will produce the report shown on the next page. All patients will have 1 or more billings.
Make sure you validate your three classes against all the functions shown above. The instructor output will be billings
by patient and will provide summary data similar to the screen shot on the next page. If you need help with using this
for your testing contact the instructor.
billType(string id = "", //Patient ID
double phCharges = 0, //Pharmacy Charges
double rRent = 0, //Room rental
double docFee = 0); //Doctor Fees
void printBill() const;
void setInfo(string, //Patient ID
double, //Pharmacy Charges
double, //Room rental
double); //Doctor Fees
void setID(string);
string getID();
void setPharmacyCharges(double);
double getPharmacyCharges();
void updatePharmacyCharges(double);
void setRoomRent(double);
double getRoomRent();
void updateRoomRent(double);
void setDoctorFee(double);
double getDoctorFee();
void updateDoctorFee(double);
double billingAmount();
The instructors test program will construct arrays of 10 doctorType, 10 patientType and 20 billType
instances and from this data will produce the report shown on the next page. All patients will have 1 or more billings.
Make sure you validate your three classes against all the functions shown above. The instructor output will be billings
by patient and will provide summary data similar to the screen shot on the next page. If you need help with using this
for your testing contact the instructor.
Please follow the instructions given above and ensure that all of the classes and functions are mentioned in the code. Also, show how the output looks with a screenshot of your output program. Someone already "answered" this problem on Chegg before but they did a really poor job at it.
Thank you so much.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 13 images
Knowledge Booster
Similar questions
- Summary In this lab, you create a derived class from a base class, and then use the derived class in a Python program. The program should create two Motorcycle objects, and then set the Motorcycle’s speed, accelerate the Motorcycle object, and check its sidecar status. Instructions Open the file named Motorcycle.py. Create the Motorcycle class by deriving it from the Vehicle class. Call the parent class __init()__ method inside the Motorcycle class's __init()__ method. In theMotorcycle class, create an attribute named sidecar. Write a public set method to set the value for sidecar. Write a public get method to retrieve the value of sidecar. Write a public accelerate method. This method overrides the accelerate method inherited from the Vehicle class. Change the message in the accelerate method so the following is displayed when the Motorcycle tries to accelerate beyond its maximum speed: "This motorcycle cannot go that fast". Open the file named MyMotorcycleClassProgram.py. In the…arrow_forwardThere are two types of data members in a class: static and non-static. Give an example of real-world use for a static data member.arrow_forwardUsing C++ Write a C++ program which uses a class that contains the following members: the name of a student, one midterm score, one final score, and one lab project score. The class also contains a member function that finds the average of the three scores and displays a grade based on that average (A for 90 and above, B for 80 and above, C for 70 and above, D for 60 and above, and F for anything less than 60). The class also contains a member function that displays a pass if the grade is D or above. Your program using overloading prints the grades of students, and names of the students.arrow_forward
- There are two types of data members in a class: static and non-static. Provide an example of when it might be useful to have a static data member in the actual world.arrow_forwardT F is an abbreviation for Transformative Function. The public members of a class may be accessed straight from the "main" function of the class.arrow_forwardA Mutator function within a class must have access to the private data item but Accessor functions should not. True False Question 32 4 pts The private and public areas of a class can appear in any order. In other words the public declarations or private declarations can come first...it does not matter. True Falsearrow_forward
- B. Pet Class Using Python Program, Write a class named Pet, which should have the following data attributes: • _ _name (for the name of a pet) •__animal_type (for the type of animal that a pet is. Example values are 'Dog', 'Cat', and `Bird')' __age (for the pet's age) init The Pet class should have an method that creates these attributes. It should also have the following methods: set_name() This method assigns a value to the __name field. set_animal_type() This method assigns a value to the __animal_type field. • set_age() This method assigns a value to the • get_name() This method returns the value of the get_animal_type() This method returns the value of the __animal_type field. • get_age() This method returns the value of the _age field. Once you have written the class, write a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet. This data should be stored as the object's attributes. Use the object's accessor methods…arrow_forwardPythonarrow_forwardRewrite the calculator program using a class called calculator. Your program will keep asking the user if they want to perform more calculations or quit and will have a function displayMenu to display the different functions e.g .(1 - addition, 2- subtraction, 3- multiplication, 4- division) Your program must have appropriate constructors and member functions to initialize, access, and manipulate the data members as well as : A member function to perform the addition and return the result A member function to perform the subtraction and return the result A member function to perform the multiplication and return the result A member function to perform the division and return the resultarrow_forward
- The following class definitions and function definitions should be used to help you finish the exam. train.h: car.h: #ifndef CAR_H #define CAR_H using namespace std; class Car #include "car.h" using namespace std; #ifndef TRAIN_H #define TRAIN_H class Train { private: Car* tHead; Car* tTail; public: Train(); -Train(); void addcarBack(Car *); void deleteFirstcar(); void removeFirstcaróftype(const string &); { private: string name; double maxSpeed; public: Car* nextcar; public: car(); Car(string); double getMaxspeed () const; string getName() const; void setName(const string &); }; #endif // Display list car by car void display() const; }; #endif Part of train.cpp: // addcarBack logic: if (traincarsHead == 0) { traincarsHead = toAdd; traincarsTail = toAdd; else { traincarstail->nextcar = toAdd; traincarsTail = toAdd;arrow_forwardComputer programmingarrow_forwardC++ coding project just need some help getting the code thank you!arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
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