Question: task 2and 3 c++ Task 2: Write a function that finds the average of the elements of a linked list. Use the following prototype. Modify
Task 2: Write a function that finds the average of the elements of a linked list. Use the following prototype. Modify your linked list data field to be a float and insert initial floats (1.5, 2.5, 3.5, 4.5) to test your function. float averagelist (struct node *); Task 3: Write a function that counts and returns 'A' grades which are stored in the linked list. Use the following prototype. Modify your linked list data field to be a character and insert initial characters (A,B,A,C,D) to test your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
