Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using linkd list or class or stuct find max dist, min dist and average Read file

ID: 3610836 • Letter: U

Question

Using linkd list or class or stuct find max dist, min dist and average

Read file, open file

Write afunction that will print out the information of the person whosedistance

field is the longest among all.

Miten.txt

Name

ID

Dist

Pay rate

April,Joe

129013

22

11.25

Matthews,Jocob

399921

21

10.85

Garfield,Kitty

332901

35

18.50

Lake,Bill

211254

26

15.90

Jones,Betty

182890

18

9.15

Goodman,Betty

195106

19

9.15

Lands,Norman

365920

40

28.75

Johnson,Carl

297192

32

29.35

Explanation / Answer

#include #include #include using namespace std;struct info{char Name[100];char ID[100];double Dist;double pr;struct info *next;}*first,*last,*temp;void print_max_info(){struct info max;temp = first;if(first !=NULL){max.Dist = first->Dist;}while(temp != NULL){if(max.DistDist){max = *temp;}temp = temp->next;}cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote