Group Project
19. Patient Fees
This
• One or more students may work on a single class.
• The requirements of the program should be analyzed so each student is given about the same workload.
• The names, parameters, and return types of each function and class member function should be decided in advance.
• The program will be best implemented as a multifile program.
Write a program that computes a patient's bill for a hospital stay. The different components of the program are
• The PatientAccount class will keep a total of the patient’s charges. It will also keep track of the number of days spent in the hospital. The group must decide on the hospital’s daily rate.
• The Surgery class will have stored within it the charges for at least five types of surgery. It can update the charges variable of the PatientAccount class.
• The Pharmacy class will have stored within it the price of at least five types of medication. It can update the charges variable of the PatientAccount class.
• The main program.
The student who designs the main program will design a menu that allows the user to enter a type of surgery, enter one or more types of medication, and check the patient out of the hospital. When the patient checks out, the total charges should be displayed.
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Starting Out With C++: Early Objects (10th Edition)
Additional Engineering Textbook Solutions
Starting Out with C++ from Control Structures to Objects (8th Edition)
Software Engineering (10th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Database Concepts (8th Edition)
Starting Out with Python (4th Edition)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
- python only** define the following function: This function must set the value of a task in a checklist to True. It will accept two parameters: the checklist object to add to, and the name of the task to mark as completed. In addition to changing the task value, it must return the (now modified) checklist object that it was given. if the task name provided is not in the checklist, this function must print a specific message and must return None. Define completeTask with 2 parameters Use def to define completeTask with 2 parameters Use a return statement Within the definition of completeTask with 2 parameters, use return _ in at least one place. Do not use any kind of loop Within the definition of completeTask with 2 parameters, do not use any kind of loop.arrow_forwardHospital Management Project "Simple Scenario We want to develop a comprehensive software product for XY Hospital, where several doctors are working together. There are several departments in the hospital, but a central administrationoffice is handling the patient appointment tasks. Most patients make an appointment before their visit. However, patients can walk in and can be treated if an appropriate doctor is available. On events, patients may change their visit schedule by calling. A patient who made an appointment but cannot appear should cancel his/her appointment in order to avoid a "no-show penalty. The appointment clerks i the administration office are handling all the appointments and the scheduling clerks generate "daily treatment schedules for doctors based on the appointment. The "daily treatment schedules' include doctor's name, patient's information, nurses and treatment rooms for each treatment. Hence, doctors are seeing patients according to the daily treatment schedule.…arrow_forwardFunction-Oriented Design: This project is designed to allow you for participating in a group work that every member of group should involve with different task. This work is divided into two parts. First part is to prepare a presentation representing a solution for the defined below problem. Additionally, second part is a report preparation that explains the solution with proper background reviews. It Is required to emphasise your diagrams and that with appropriate, detailed explanations. 1 Introduction Increasingly supermarkets are introducing self-service checkouts. Your task Is to develop a design for Easy Checkout, a new self-service checkout system. You should follow a function-oriented design approach, i.e. you should develop: 1. a data flow diagram 2. structure charts Your design should focus on the processing of a single product. This will provide the foundation for the full design of Easy aeckoat Details on the requirements that you are to work with are given below. 2 Informal…arrow_forward
- Program Specifications Write a program to play an automated dice game that uses two dice (GVDie class provided). The player rolls both dice and either wins one credit, loses one credit, or sets a goal for future rolls. Current round ends when player wins or loses a credit. Game ends when credits are zero.Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress.Step 0. Read starter template and do not change the provided code. Two GVDie objects are created. A random seed is read from input and passed to a die. This supports automated testing and creates predictable results that would otherwise be random. Starting credits is read from input. Step 1 . Roll both dice. Player wins one credit by rolling 7 or 11. Player losses one credit by rolling 2, 3, or 12. Otherwise, credits do not change and the player's goal is set to the dice total. The player's…arrow_forwardFruit Juice MachineIn this programming example, there are one function available which is main() class andstored in fruit.cpp. The program should do the following;1. Show the customer the different product sold by the juice machine.2. Let the customer make the selection.3. Show the customer the item selected.4. Accept money from customer.5. Release the item. Input – the selected item, quantity Output – the selected item and customer receipt. Question Execute the files by using Dev C++. Understand the flow of the program. Next, manipulate oradd appropriate functions in the existing files to: 1. Add coffee in the machine which has several types (minimum of 4 types). Allocates theprice and types for the customer. (Now, user can choose screen to buy juice or coffee.With each have different menu). 2. Show the customer the cost for each. 3. Let the customer choose more than one drink (iterate till the customer request to endchoosing the drink). 4. Prompt user to enter more money as long as…arrow_forwardDev C++arrow_forward
- Chapter 6 Project Project Name: Chpt6_Project Class Name: Chpt6_Project Projectile Motion An object is thrown straight up from the top of a building that is h feet tall, with an initial velocity of v feet per second. The height of the object as a function of time can be modeled by the function h(t) = -16t² + vt + h, where h(t) is the height of the object (in feet) t seconds after it is thrown, and his the starting height, i.e. the height of the building This model assumes the object misses the top of the building on the way back down to the ground and that wind resistance is minimal. Example: Assume the ball is thrown straight up from the top of a 128 foot tall building with an initial speed of 32 feet per second (ft/sec). The height of the ball as a function of time can be modeled by the function by: h(t) = -16t² + 32t + 128. How high above the ground will the ball be after 3 seconds of flight time? Note: t² equals t times t h(t) = -16(3)² +32(3)+128 h(t) = -144 +96+ 128= 80 feet The…arrow_forwardDecription keyarrow_forwardPROGRAMMING LANGUAGE: C++ You need to store hiring date and date of birth for teachers, and for students store their admission date and date of birth. You need to create a Date class for this purpose. Create objects of Date class in Teacher and Student class to store respective dates. You need to write print function in Teacher and Student classes as well to print all information of Teachers and Students. You need to perform composition to implement this task. Create objects of Teacher and Student classes in main function and call print function for both objects. Print Date class here. Print updated Teacher class here. Print updated Student class here. Print main function here. Print Outputshere.arrow_forward
- PROGRAMMING LANGUAGE: C++ ALSO PUT SCREENSHOTS WITH EVERY TASK. TASK 1 : A class of ten students took a quiz .The grades (integers are in range 0-100) for this quiz are available to you .Determine class average on quiz . TASK 2: Write c++ code that print summery of exam result and decide either student should have makeup class or not .If more then 30% of class fails in exam it’s mean they need a makeup class otherwise they don’t need any makeup class. For class strength take input from user (Hint: take two variables pass and fail) TASK 3: write a c++ that will determine whether a department-store customer has exceeded the credit limit on the charge account .For each customer , following facts are available : Account number (an integer) Balance at beginning of month Total of all items charged by this customer this month Total of all credit applied to this customer’s account this month. Allowed credit limit You are required to use a while structure to input each of these facts ,…arrow_forwardC++ code please answerarrow_forwardtrue false void ffx() is a function with no return value void ffx() is a function with no argument int ffx(char x) is a function with int return value int ffx(char *x) is a function with parameter passed by reference char ffx( int x) is a function with int return value int ffc(char &x) is a function with parameter passed by referencearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education