I need help with this assignment.
Warm up: Contacts (C++)
You will be building a linked list. Make sure to keep trackof both the head and tail nodes.
(1) Create three files to submit.
- Contacts.h – Class declaration
- Contacts.cpp – Class definition
- main.cpp – main() function
(2) Build the ContactNode class per the followingspecifications:
-
Parameterized constructor. Parameters are name followed by phonenumber.
-
Public member functions
-
InsertAfter() (2 pts)
-
GetName() – Accessor (1 pt)
-
GetPhoneNumber – Accessor (1 pt)
-
GetNext() – Accessor (1 pt)
-
PrintContactNode()
-
Private data members
-
string contactName
-
string contactPhoneNum
-
ContactNode* nextNodePtr
Ex. of PrintContactNode() output:
Name: Roxanne HughesPhone number: 443-555-2864
(3) In main(), prompt the user for three contacts and output theuser’s input. Create three ContactNodes and use the
PayPal Gateway not configured
PayPal Gateway not configured