Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with this in C++. Thanks! - string contactName - string contactPhoneNumber - ContactNode* nextNodePtr - Constructor with parameters for name followed by phone

Please help with this in C++. Thanks!

image text in transcribed

- string contactName - string contactPhoneNumber - ContactNode* nextNodePtr - Constructor with parameters for name followed by phone number ( 1 pt) - Public member functions - GetName( - Accessor ( 1pt ) - GetPhoneNumber( ) -Accessor (1 pt) - InsertAfter0 ( 2 pts) - GetNext0 - Accessor (1 pt) - PrintContactNode0 Ex: If the name is Roxanne Hughes and the phone number is 443-555-2864, PrintContactNode() outputs: Name: Roxanne Hughes Phone number: 4435552864 (2) Define main() to read the name and phone number for three contacts and output each contact. Create three ContactNodes and use the nodes to build a linked list. ( 2 pts) Ex- If the input is: RoxanneHughes4435552864JuanAlbertoJr.4105559385RachelPhil1ips3105556610 the output is: Person 1: Roxanne Hughes, 443-555-2864 Person 2: Juan Alberto Jr., 4105559385 Person 3: Rachel Philips, 3105556610 (3) Output the linked list using a loop to output contacts one at a time ( 2pts) Ex: CONTACT IIIST Name: Roxanne Hughes Phone number: 4435552864 Name: Juan Alberto Jr

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago