Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 15, Problem 4PP
Program Plan Intro

Creation of program to create and display billing records for patients

Program Plan:

  • Define a class “person” to define methods and operations in it.
    • Define a constructor “person()” to create new instance of a person.
    • Define a method “getName()” to get name of person.
    • Define a method “operator=()” to define operation for “=” operator.
    • Define a method “operator>>()” to define operation for “>>” operator.
    • Define a method “operator<<()” to define operation for “<<” operator.
  • Define a class “doctor” to define methods and operations in it.
    • Define a constructor “doctor()” to create new instance of a doctor.
    • Define a method “gtDctr()” to get name of doctor.
    • Define a method “gtDsgntn()” to get designation of doctor.
    • Define a method “operator=()” to define operation for “=” operator.
  • Define a class “patient” to define methods and operations in it.
    • Define a constructor “patient()” to create new instance of a patient.
    • Define a method “getPtnt()” to get name of patient.
    • Define a method “gtDctr()” to get name of doctor.
    • Define a method “gtDsgntn()” to get designation of doctor.
    • Define a method “operator=()” to define operation for “=” operator.
  • Define a class “billing” to define methods and operations in it.
    • Define a constructor “billingt()” to create new instance of billing.
    • Define a method “getPtnt()” to get name of patient.
    • Define a method “gtDctr()” to get name of doctor.
    • Define a method “gtDsgntn()” to get designation of doctor.
    • Define a method “gtBill()” to get bill for patient.
    • Define a method “operator=()” to define operation for “=” operator.
  • Define a main method
    • Create instance for “doctor”, “patient” and “billing” classes.
    • Call methods in classes to perform specific operations.
    • Display the result.

Blurred answer
Students have asked these similar questions
make a screen capture showing the StegExpose results
Which of the following is not one of the recommended criteria for strategic objectives? Multiple Choice   a) realistic   b) appropriate   c) sustainable   d) measurable
Management innovations such as total quality, benchmarking, and business process reengineering always lead to sustainable competitive advantage because everyone else is doing them. a) True b) False

Chapter 15 Solutions

Problem Solving with C++ (9th Edition)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning