Study the scenario and complete the question(s) that follow: Umnandi Consulting is a small private firm based in South Africa. Currently, their human resources division writes employee details on a paper and keeps their records in a filo. They have deci digitise this process as keeping physical file records is difficult. They have approached you as a programmer to assist them in developing a program that can store employee details in a digital file. ded to Develop a Java program for the above scena rio using NetBeans. Your program should initially display a menu to the user. The menu should have three options, namely (1) Enter New Staff Details (2) Search by ID (3) Exit Program (see figure below). The program should make use of two methods, emplName ( ) for adding new employee name and emplID () for searching employee details by ID. The emp1Name () method should accept three values: the name of the omployee, the employee ID and the salary of the employee to be entered by the user. It should then write the se details to a text file in a single line. Figure 3 below shows the operation of saving two employee details:

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
Answer should be in Java
Study the scenario and complete the question(s) that follow:
Umnandi Consulting is a small private firm based in South Africa. Currently, their human resources
division writes employee details on a paper and keeps their records in a file. They have deci
digitise this process as keeping physical file records is difficult. They have approached you as a
programmer to assist them in developing a program that can store employee details in a digital file.
ded to
Develop a Java program for the above scena
rio using NetBeans. Your program should initially
display a menu to the user. The menu should have three options, namely (1) Enter New Staff
Details (2) Search by ID (3) Exit Program (see figure below). The program should make use of
two methods, emplName ( ) for adding new employee name and
emplID () for searching
employee details by ID. The
emplName () method should accept three values: the name of the
employee, the employee ID and the salary of the employee to be entered by the user. It should
then write the se details to a text file in a single line. Figure 3 below shows the operation of saving
two employee details:
Output - ITJVABAssign3 (run) x
run:
Welcome to Umnandi Consulting Employee system.
Please select an option
*************.
*******
1 Enter New staff Details
2 search by ID
3 Exit Program
Enter the Employee Name :
Sheunesu Makura
Enter the Employee ID Number :
1234
Enter the Employee Current salary :
6000
staff Details added successfully
********************..*****..
welcome to Umnandi Consulting Employee system.
Please select an option
***************************
1 Enter New staff Details
2 search by ID
3 Exit Program
1
Enter the Employee Name :
Thando Mandela
Enter the Employee ID Number :
2345
Enter the Employee current salary :
8000
Staff Details added successfully
****
Welcome to Umnandi Consulting Employee system.
Please select an option
....
Figure
3- Writing staff details
Transcribed Image Text:Study the scenario and complete the question(s) that follow: Umnandi Consulting is a small private firm based in South Africa. Currently, their human resources division writes employee details on a paper and keeps their records in a file. They have deci digitise this process as keeping physical file records is difficult. They have approached you as a programmer to assist them in developing a program that can store employee details in a digital file. ded to Develop a Java program for the above scena rio using NetBeans. Your program should initially display a menu to the user. The menu should have three options, namely (1) Enter New Staff Details (2) Search by ID (3) Exit Program (see figure below). The program should make use of two methods, emplName ( ) for adding new employee name and emplID () for searching employee details by ID. The emplName () method should accept three values: the name of the employee, the employee ID and the salary of the employee to be entered by the user. It should then write the se details to a text file in a single line. Figure 3 below shows the operation of saving two employee details: Output - ITJVABAssign3 (run) x run: Welcome to Umnandi Consulting Employee system. Please select an option *************. ******* 1 Enter New staff Details 2 search by ID 3 Exit Program Enter the Employee Name : Sheunesu Makura Enter the Employee ID Number : 1234 Enter the Employee Current salary : 6000 staff Details added successfully ********************..*****.. welcome to Umnandi Consulting Employee system. Please select an option *************************** 1 Enter New staff Details 2 search by ID 3 Exit Program 1 Enter the Employee Name : Thando Mandela Enter the Employee ID Number : 2345 Enter the Employee current salary : 8000 Staff Details added successfully **** Welcome to Umnandi Consulting Employee system. Please select an option .... Figure 3- Writing staff details
I salary.bxt - Notepad
File
Edit
View
Sheunesu Makura 1234 6000
Thando Mandela 2345 8000
Palesa Mohlare 5645 7500
Andries Botha 6534 6500
Xolisa Phila 7843 7100
Ln 1, Col 1
100%
Windows (CRLF) UTF-8
Figure 4 - Staff details in text file
Source: Makura S.M. (2022)
The empID () method must search employee details by ID and output the details back to the
user as shown below:
Output - ITJVABAssign3 (run) #2
run:
......
Welcome to Umnandi Consulting Employee system.
Please select an option
************************
...
1 Enter New Staff Details
2 Search by ID
3 Exit Progr am
2
Enter Id
5645
Employee Details Found:
Palesa Mohlare 5645 7500
*******.*...*..
Welcome to Umnandi Consulting Employee system.
Please select an option
.***...*..
1 Enter New Staff Details
2 search by ID
3 Exit Program
Figure 5 - Searching for employee details
Source: Makura S.M. (2022)
Also, ensure that the program repeatedly shows the menu until a point when option 3 is selected
Which terminates the program
Transcribed Image Text:I salary.bxt - Notepad File Edit View Sheunesu Makura 1234 6000 Thando Mandela 2345 8000 Palesa Mohlare 5645 7500 Andries Botha 6534 6500 Xolisa Phila 7843 7100 Ln 1, Col 1 100% Windows (CRLF) UTF-8 Figure 4 - Staff details in text file Source: Makura S.M. (2022) The empID () method must search employee details by ID and output the details back to the user as shown below: Output - ITJVABAssign3 (run) #2 run: ...... Welcome to Umnandi Consulting Employee system. Please select an option ************************ ... 1 Enter New Staff Details 2 Search by ID 3 Exit Progr am 2 Enter Id 5645 Employee Details Found: Palesa Mohlare 5645 7500 *******.*...*.. Welcome to Umnandi Consulting Employee system. Please select an option .***...*.. 1 Enter New Staff Details 2 search by ID 3 Exit Program Figure 5 - Searching for employee details Source: Makura S.M. (2022) Also, ensure that the program repeatedly shows the menu until a point when option 3 is selected Which terminates the program
Expert Solution
steps

Step by step

Solved in 3 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