Write a C program that scans a recorded data file (Olympic.txt) of Men’s 200 butterfly event and fill the variable mensButter declared below. Now sort the entrant in ascending order of completion time and display the entrant name, country, completion time. Display a message if this event creates a world record. The current world record time is 112.21 seconds. struct olympic{ char first[20], last[20]; char country[20]; float time; }; struct olympic mensButter[8]; Olympic.txt Takeshi Matsuda Japan 112.97 Kaio Almeida Brazil 114.71 Wu Peng China 114.35 Moss Burmeste
Takeshi Matsuda Japan 112.97 Kaio Almeida Brazil 114.71 Wu Peng China 114.35 Moss Burmester NewZealand 114.35 Laszlo Cseh Hungary 112.70 Pawel Korzeniowski Poland 114.60 Nikolay Skvortsov Russia 115.14 Michael Phelps UnitedStates 112.03
where are you struggling with this? Do you know how to start the program? Have you ever read a file in C? http://www.cs.bu.edu/teaching/c/file-io/intro/
That was our first time doing in class I learn in Matlab but it seems way easier then doing it in c++
so have you started the program?
yea its completed now
Join our real-time social learning platform and learn together with your friends!