Create a Java program that will read and write a txt file. Program should have the following specifications: > Display the following options > Read Employee > Enter the employee id number > Display the values of the txt file(after the entry of the employee id number). > Write Employee > Enter employee id number, employee name, department, position, and contract (Regular, Probationary, Part- time) > Write a txt file with the file name as the employee id number and save the data with a format (*your own format*) ex. Employee Id : 10000 Employee Name : Cardo Dalisay Department: CCSE Department Position: Non-Teaching Faculty Contract: Part-time > Exit (terminate the program)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Create a Java program that will read and write a txt file.
Program should have the following specifications:
> Display the following options
> Read Employee
> Enter the employee id number
> Display the values of the txt file(after the entry of the employee id number).
> Write Employee
> Enter employee id number, employee name, department, position, and contract (Regular, Probationary, Part-
time)
> Write a txt file with the file name as the employee id number and save the data with a format (*your own
format*)
ex.
Employee Id : 10000
Employee Name : Cardo Dalisay
Department: CCSE Department
Position: Non-Teaching Faculty
Contract: Part-time
> Exit (terminate the program)
Note: It will only terminate the program if the user choose the exit option.
Transcribed Image Text:Create a Java program that will read and write a txt file. Program should have the following specifications: > Display the following options > Read Employee > Enter the employee id number > Display the values of the txt file(after the entry of the employee id number). > Write Employee > Enter employee id number, employee name, department, position, and contract (Regular, Probationary, Part- time) > Write a txt file with the file name as the employee id number and save the data with a format (*your own format*) ex. Employee Id : 10000 Employee Name : Cardo Dalisay Department: CCSE Department Position: Non-Teaching Faculty Contract: Part-time > Exit (terminate the program) Note: It will only terminate the program if the user choose the exit option.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning