Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Please! StarterKit I have created the HW06 directory for you and included a starter kit PatientAnalysisStarterKit.tar.gz which has patientAnalysis.cpp, and an executable file sampleExecutable.
C++ Please!
StarterKit I have created the HW06 directory for you and included a starter kit PatientAnalysisStarterKit.tar.gz which has patientAnalysis.cpp, and an executable file sampleExecutable. The cpp file is a skeletal source code that has main entirely implemented for you. All you need to do is fill in the ??? and finish the implementation of the two functions. Function Descriptions The function AbnormalCategory will iteratively go through each patient and find the patient who has either the highest or lowest value of a particular category of interest. One of the parameters of this function is to know the category of interest (weight, height, temp, etc.) and if we're trying to find the MAX/MIN of that category. Thus, your function should return the MAX/MIN value found and arrayPtr should be updated to point the patient (row [base address of the sub-array]) who has the MAX/MIN value. The function DisplayPatientInfo will display the entire record of the patient through arrayPtr, which has been updated by AbnormalCategory. Think of it as displaying an entire row (onedimensional array) of a two-dimensional array. Just before you display the patient's record, you'll display a header, so we know what the corresponding values represent. Notes If you are stuck or rusting working with two-dimensional arrays, I suggest reading more about it in old CSCl 123 book and/or notes. Also, you can write a quick throwaway code to give you some hands-on experience. Just remember that when you pass a two-dimensional array to a function, you must also pass the number of rows as an argument. The number of columns is hard-coded in the implementation (parameter) of the function (not passed). Get patientAnalysis.cpp in HW06 directory so it will build and run. Let me know if you have any questionsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started