1. Trang chủ
  2. » Vật lý

Lập trình hướng đối tượng: Assignment 2

2 18 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 63,54 KB

Nội dung

Allow user to input name of file that contains information of all employees. Task 2:[r]

(1)

Assignment 2

You have a class diagram as below picture:

Note:

• _LastName: no more than 20 characters • _FirstName: no more than 10 characters • _BirthDate: is formatted by “dd/mm/yyyy” • _Address: no more than 60 characters • _HomePhone: no more than 20 characters • _Code: is exactly characters

• _Title: no more than 30 characters • _HireDate: is formatted by “dd/mm/yyyy”

Write a C++ program to implement these classes, and the below tasks: Enter file name

(2)

2 Add new employee

3 List all employees Tasks 1:

Allow user to input name of file that contains information of all employees Task 2:

Allow user to add new information of one employee After check validation of all data, save this information into file that was inputted in task

Task 3:

Display all information of employees in file that was inputted in task

Sample data:

_LastName Davolio Fuller Buchanan

_FirstName Nancy Andrew Steven

_BirthDate 08/12/1948 19/02/1952 04/03/1955

_Address 507 - 20th Ave E Apt 2A

908 W Capital Way 14 Garrett Hill _HomePhone (206) 555-9857 (206) 555-9482 (71) 555-4848

_Code 0001 0002 0003

_Title Sales Representative Vice President, Sales

Sales Manager

_HireDate 01/05/1992 14/08/1992 17/10/1993

Ngày đăng: 10/03/2021, 14:34

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w