Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The parameters and recturn types of each function and class member function shou

ID: 3547629 • Letter: T

Question

The parameters and recturn types of each function and class member function should be decided in advance. - The program be best implemented as a multi-file program. You are to write a program that computes a patient's bill for a hospital stay. The different components of the program are: The PatientAccount class The Surgery class The Pharmacy class The Subvention class The main program - 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 class Subvention calculates a subsidy that the Municipal Government will provide to Customer's Account, which must be deducted from this account and must be totalized to be loaded at the end of the period to the government entity. The group must make assumptions to make these subsidies are different percentages by age and sex. - The student who designs the main program will design a menu that allows the user to enter a type of surgery and 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.

Explanation / Answer

1. Multi file code means:-

A large C or C++ program should be divided into multiple files. This makes each file short enough to conveniently edit, print, etc. It also allows some of the code, e.g. utility functions such as linked list handlers or array allocation code, to be shared with other programs.

In general, divide your code along natural divisions in the program. Each file should contain a group of functions that do related things, e.g. manipulate the same data structure, are associated with the same class or closely-related group of classes, etc. Imagine another program that might use some of these functions: include in one file all the functions that this other program would require. Or try to write an English description of what's in each file: good divisions can usually be described succinctly.

Examples:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote