Question: C++ program Project : Patients File Write a program to read 30 patients records from a batch file. Each patient's record has a 1. name

 C++ program Project : Patients File Write a program to read
30 patients records from a batch file. Each patient's record has a
C++ program

Project : Patients File Write a program to read 30 patients records from a batch file. Each patient's record has a 1. name field, DOB field, Address field, primary care physician's name, dates visited (Put 6 visits per patient). Your program should do the following: a) Create a batch file called Pateint.txt for 30 patients b) Create record to consist all those fields. c) Declare array of records size 30. d) Open the Pateint.txt file as a read mode e) Read each record from Pateint.txt file and store it in the array. Display the content of the array after all the records has been read. f) g) Close Pateint.txt file. h) Create a new text file through your program called Patient 2.txt Open Patient 2.txt file as a write mode. i) f) Display the content of the array after all the records has been read. g) Close Pateint.txt file. h) Create a new text file through your program called Patient 2.txt Open Patient 2.txt file as a write mode. i) j) Write the content of array into Patient 2.txt file k) Close Patient_2.txt file. 1) Open Patient_2.txt file as a read mode. m) Display the content Patient_2.txt file. n) Close Patient 2.txt file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!