Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: Write a C program that reads a Zoom meeting report from a text file, processes it , and displays attendance records based on certain

Objective: Write a C program that reads a Zoom meeting report from a text file, processes it, and displays attendance records based on certain criteria. Input File Format: * Header line: Name, Email, Join Time, Leave Time, Duration (Minutes)* Each subsequent line: Record for a connection including attendee's name, email, join time, leave time, and duration. Assumptions: * Attendees are uniquely identified by their name & surname. * Name and surname should match regardless of case. * There's no time overlap between connections of the same attendee. * Maximum 500 attendees. * Duration is provided for each record and is compatible with the difference between join and leave time. Program Execution: >./program Arguments: 1. : Name of the input file (Zoom meeting report).2. : Minimum duration (in minutes) for attendees to be displayed. 3.(optional): * If not provided, output order follows the original input order. * If provided as "sorted", output is alphabetical based on surname & name. Program Tasks: * Read the input file and store attendee information (name, surname, duration).* Combine multiple connections by the same attendee into one, updating the duration accordingly. * Display attendees with a total connection duration at least .* Optionally sort the output based on alphabetical order of surname & name. Hints: * Utilize string sorting algorithms. * Use string.h library functions. * Consider ctype.h for character functions. * fgets, fputs functions from stdio.h can be useful. input1.txt: Name,Email,Join Time,Leave Time,Duration(Minutes) Feyza Nur Duman,fnur.duman@tedu.edu.tr,02/28/202010:54:38,02/28/202012:56:38,122.0 Eda Nur YILMAZ,enur.yilmaz@tedu.edu.tr,02/28/202010:57:09,02/28/202010:58:28,2.0 Serhat Gokhan YAMAC,sgokhan.yamac@tedu.edu.tr,02/28/202010:59:19,02/28/202012:56:28,118.0 Duru Yamac,,02/28/202010:59:27,02/28/202012:56:11,117.0 Asya Hale Gencel,ahale.gencel@tedu.edu.tr,02/28/202010:59:28,02/28/202012:56:38,118.0 Eda Nur YILMAZ,enur.yilmaz@tedu.edu.tr,02/28/202010:59:30,02/28/202012:33:32,95.0 Taner Ceyhun,taner.ceyhun@tedu.edu.tr,02/28/202011:00:12,02/28/202011:00:24,1.0 Sevil TERZI,sevil.terzi@tedu.edu.tr,02/28/202011:00:33,02/28/202012:21:07,81.0 Taner Ceyhun,taner.ceyhun@tedu.edu.tr,02/28/202011:00:30,02/28/202012:56:26,116.0 Ilhan Tekin,,02/28/202010:58:44,02/28/202012:56:29,118.0 Aytekin Safak,,02/28/202010:56:49,02/28/202012:56:38,120.0 Sevil Terzi,,02/28/202012:27:50,02/28/202012:55:37,28.0 Sevil TERZI,sevil.terzi@tedu.edu.tr,02/28/202012:58:30,02/28/202012:59:30,1.0

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

Students also viewed these Databases questions