Question: Write a code in C + + Given the MileageTrackerNode class containing the number of miles a runner runs on a certain date, complete main

Write a code in C++ Given the MileageTrackerNode class containing the number of miles a runner runs on a certain date, complete main(to perform the following tasks:
Read the number of nodes in the linked list from user input, followed by the number of miles and date of each node.
Use the MileageTrackerNode's InsertAfter() function to insert each node according to the input sequence (i.e. insert each node after the last node).
Print the entire linked list using the MileageTrackerNode's PrintNodeData) function. DO NOT print the head node that does not contain user-input values. Hint: PrintNodeData() only outputs values in one node; therefore, iterate through the linked list.
Ex. If the input is:
3
2.2
72?18
3.2
77?18
4.5
716?18
the output is:
2.2,72?18
3.2,77?18
4.5,716?18
Write a code in C + + Given the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!