1. Creating Employee Data ( Page 625) Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone Number, Telephone Extension, and E-mail Address. The valid values for department are Accounting, Administration, Marketing, MIS, and Sales. Once the data is entered, the user should be able to save it to a file. Figure 9-30 shows an example of the application's form. The form shown in Figure 9-30 has a combo box for selecting the department; a Save Record button, which writes the record to a file; a Clear button, which clears the text boxes; and an Exit button. Write code in the Form_Load event handler that allows the user to enter the name of the file. If the file does not exist, a new one will be created. If the file already exists, the input data will be appended to the file. Figure 9-30 Employee Data form for saving employee records Form1.vb [Design] X Employee Data Enter Employee Data First Name: Middle Name: Last Name:

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
How would I create this program in Visual Basic?
1. Creating Employee Data ( Page 625)
Create an application that allows the user to enter the
following employee data: First Name, Middle Name,
Last Name, Employee Number, Department, Telephone
Number, Telephone Extension, and E-mail Address. The
valid values for department are Accounting,
Administration, Marketing, MIS, and Sales. Once the
data is entered, the user should be able to save it to a
file. Figure 9-30 shows an example of the application's
form. The form shown in Figure 9-30 has a combo box
for selecting the department; a Save Record button,
which writes the record to a file; a Clear button, which
clears the text boxes; and an Exit button. Write code in
the Form_Load event handler that allows the user to
enter the name of the file. If the file does not exist, a
new one will be created. If the file already exists, the
input data will be appended to the file.
Figure 9-30 Employee Data form for saving employee records
Form1.vb [Design] X
Employee Data
Enter Employee Data
First Name:
Middle Name:
Last Name:
Emplovee Number:
Transcribed Image Text:1. Creating Employee Data ( Page 625) Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone Number, Telephone Extension, and E-mail Address. The valid values for department are Accounting, Administration, Marketing, MIS, and Sales. Once the data is entered, the user should be able to save it to a file. Figure 9-30 shows an example of the application's form. The form shown in Figure 9-30 has a combo box for selecting the department; a Save Record button, which writes the record to a file; a Clear button, which clears the text boxes; and an Exit button. Write code in the Form_Load event handler that allows the user to enter the name of the file. If the file does not exist, a new one will be created. If the file already exists, the input data will be appended to the file. Figure 9-30 Employee Data form for saving employee records Form1.vb [Design] X Employee Data Enter Employee Data First Name: Middle Name: Last Name: Emplovee Number:
Save Record
empdata.txt x
1 Ada
2
A
3
4
5
Accounting
6 9417775555
Telephone.
Extension:
E-mail Address:
Make sure to test your project by entering a new text
file name, and then to confirm you are appending data
to the file, run the program again and enter the same
text file name.
9
You can confirm that the records you entered are in the
file. See attached graphic. Assume that the text file
name the user created was empdata.txt
Creating Employee Data - Microsoft Visual Studio
File Edit View Project Build Debug Team Tools Test Analyze Window Help
Debug
x86
▶Start
Adams
A1111
7 555
8
Clear
AAdams@abc.net
Exit
▾ Solution Explorer
+0 noc
Search Solution Explorer (Ctrl+
▷ ■■ References
bin
A
▷
▷
DE
Debua
Release
II
-
empdata.txt
Employee Data Part 1.exe
Employee Data Part 1.pdb.
Employee Data Part 1.vshost.exe
obj
Form1.vb
Solution Explorer Team Explorer
Properties
■ +
Employee Data Part 1.vshost.exe.manifest
Employee Data Part 1.xml
Show all files
Transcribed Image Text:Save Record empdata.txt x 1 Ada 2 A 3 4 5 Accounting 6 9417775555 Telephone. Extension: E-mail Address: Make sure to test your project by entering a new text file name, and then to confirm you are appending data to the file, run the program again and enter the same text file name. 9 You can confirm that the records you entered are in the file. See attached graphic. Assume that the text file name the user created was empdata.txt Creating Employee Data - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Test Analyze Window Help Debug x86 ▶Start Adams A1111 7 555 8 Clear AAdams@abc.net Exit ▾ Solution Explorer +0 noc Search Solution Explorer (Ctrl+ ▷ ■■ References bin A ▷ ▷ DE Debua Release II - empdata.txt Employee Data Part 1.exe Employee Data Part 1.pdb. Employee Data Part 1.vshost.exe obj Form1.vb Solution Explorer Team Explorer Properties ■ + Employee Data Part 1.vshost.exe.manifest Employee Data Part 1.xml Show all files
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

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