Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago