Sara 123123 121122 123 Mohammed 12345 Ahmad John 2. The user is asked to enter the values for records untal the user enters the value zero (0) for the name then the loop should be terminated 1. Then, the application should read and check each record in the text file and print out all the records that have an ID less than 6 digsts Nete: The file should be opened only once for writing otherwise the prevous content will be truncated. Make sure you handle all expected exceptions that might be caused by the provided code Sample outputl:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
You are asked to develop an application that does the following
1. The applacation should read the records from the mer (String Name and String ID) and write them into a text file named (Employees.on The text file should be structired as
follow
Sara
123123
Ahmad
John
Mohammed 12345
121122
123
2. The user is asked to enter the values for records untal the user enters the value zero (0) for the name then the loop should be terminated
a. Then, the application should read and check each record in the text file and print out all the records that have an ID less than 6 digits
Nete:
• The file should be opened only once for writing otherwise the previous content will be truncated.
• Make sure you handle all expected exceptions that might be caused by the provided code
Sample outputl:
Enter eye a nl 1D
e a tly
Ense nge a tD
Aed
ee w ed ly..
E yee
Ju
ee ed tllr.
Easeseieyee
and t
Bete enp D
Transcribed Image Text:You are asked to develop an application that does the following 1. The applacation should read the records from the mer (String Name and String ID) and write them into a text file named (Employees.on The text file should be structired as follow Sara 123123 Ahmad John Mohammed 12345 121122 123 2. The user is asked to enter the values for records untal the user enters the value zero (0) for the name then the loop should be terminated a. Then, the application should read and check each record in the text file and print out all the records that have an ID less than 6 digits Nete: • The file should be opened only once for writing otherwise the previous content will be truncated. • Make sure you handle all expected exceptions that might be caused by the provided code Sample outputl: Enter eye a nl 1D e a tly Ense nge a tD Aed ee w ed ly.. E yee Ju ee ed tllr. Easeseieyee and t Bete enp D
Sample outputl:
Enter employee name
and ID
Sara
123123
Record vas added successfully.IE
Enter employee name
and ID
Ahmad
121122
Record was added successfully.!!
And ID
Enter enployee name
John
123
Record was added successtully. I!
Enter empleyee name
And 10
Mohammad
12345
Record vas added sussessfully||
Enter emplcyee name
4nd ID
染
This reser4 I0 less than e digits:
John
Transcribed Image Text:Sample outputl: Enter employee name and ID Sara 123123 Record vas added successfully.IE Enter employee name and ID Ahmad 121122 Record was added successfully.!! And ID Enter enployee name John 123 Record was added successtully. I! Enter empleyee name And 10 Mohammad 12345 Record vas added sussessfully|| Enter emplcyee name 4nd ID 染 This reser4 I0 less than e digits: John
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY