Question: Please program in C++ A patient record has the following details. ID - A unique integer denoting a patient ID FName - A string to
Please program in C++
A patient record has the following details. ID - A unique integer denoting a patient ID FName - A string to store the first name of the student LName - A string to store the last name of the student Vitals - A int array that will store just patient's vitals like BP, Sugar, Pulse Define the structure for a patient. Then define an array of structures for 250 patients. Read from patientsinfo.txt all the patients information and store it in a dynamic array of structures. Print the values. Int values should be printed with setw(4) and Strings be printed with setw(10). All fields be left justified. If you follow this format. your output will print like the output shown. Expected Output 463670.2497140.q3zqy7 ID FN LN BPU BPL Pulse 1 Sri Sri 1208084 8 Ala Sri 1308790 4 Jey kes 1509792 7 Priya Kes 1808796 3 Leo Mathew 1108790 11 Luis Cast 1208084 18 Arg Jose 1308790 14 Rylie How 1509792 17 Pat Will 1808796 13 Leo Zach 1108790 A patient record has the following details. ID - A unique integer denoting a patient ID FName - A string to store the first name of the student LName - A string to store the last name of the student Vitals - A int array that will store just patient's vitals like BP, Sugar, Pulse Define the structure for a patient. Then define an array of structures for 250 patients. Read from patientsinfo.txt all the patients information and store it in a dynamic array of structures. Print the values. Int values should be printed with setw(4) and Strings be printed with setw(10). All fields be left justified. If you follow this format. your output will print like the output shown. Expected Output 463670.2497140.q3zqy7 ID FN LN BPU BPL Pulse 1 Sri Sri 1208084 8 Ala Sri 1308790 4 Jey kes 1509792 7 Priya Kes 1808796 3 Leo Mathew 1108790 11 Luis Cast 1208084 18 Arg Jose 1308790 14 Rylie How 1509792 17 Pat Will 1808796 13 Leo Zach 1108790
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
