Write a C# program and name it FindPatientRecords that prompts the user for an Patient ID # (p#), reads records from Patients.txt, and displays data in the p#, PATIENT_NAME and BALANCE data records for the specified Patient ID # record. The Patients.txt file has the following three data recorded for each patient: p#, PATIENT_NAME, BALANCE. If the record does not exist, display the following error message: No records found for p# using System; using static System.Console; using System.IO; class FindPatientRecords {    static void Main()    {       // code here    } }

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

Write a C# program and name it FindPatientRecords that prompts the user for an Patient ID # (p#), reads records from Patients.txt, and displays data in the p#, PATIENT_NAME and BALANCE data records for the specified Patient ID # record. The Patients.txt file has the following three data recorded for each patient: p#, PATIENT_NAME, BALANCE.

If the record does not exist, display the following error message: No records found for p#

using System;
using static System.Console;
using System.IO;
class FindPatientRecords
{
   static void Main()
   {
      // code here
   }
}

Expert Solution
steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT