Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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