hiện tại e đang học cấp 3 nên cũng ko có thời gian đi học trung tâm, hum trước có gặp 1 anh sinh viên, mượn đc mấy cái đề assignment, có cái đề này em thấy khó khó, ai có thể giúp em đc ko ạ , em xin cảm ơn nhiều
Write a program to manage VisitCard information:
1. Create a class with name is VisitCard includes:
Fields( all are private):
FullName
Company
Possition
OfficePhone
OfficeAddress
Methods:
each field has two methods get/set( for example: getFullName()/setFullName())
constructor:
a default constructor
a constructor has six parameters to initilize of siz fields
2. create a class named VisitCartManage, including:
Fields:
ListCarts is an array of Visitcart objects
NumOfCarts is used to store number of current visit carts
MaxNumOfCarts to store maximum number of visit carts
Method:
CreateList() to input maximum number of visit cart and creating ListCart array
AddVisitCart() to add a visit cart to array
DisplayAll() to display all visit carts in ListCarts array
SearchByName() to input a name, seach in ListCarts array.? If existed then view detail information else displaying a massage ?Not Found?
?
Main() method of application display a menu and excuting responding function with uer?s option:
Menu:
Create a list of visit cart
Display all visit carts
Search visit carts
Exit
Your choice:?
3. extend requiments:
all methods of VisitCartManage class must needed try-catch
processing exception sequence: an exception if occurred, it is thrown from set<FeildName> of Visit Cart(for example: setName()), and it is catch and process in CreateList() in VisitCartManage
Bookmarks