Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

! ! PLEASE SOLVE WITH C LANGUAGE!! In this assignment, you are going to write a C program that reads, processes, and displays attendance records

!!PLEASE SOLVE WITH C LANGUAGE!! In this assignment, you are going to write a C program that reads, processes, and displays attendance records in a Zoom meeting report provided as a txt file.
Getting to know input file:
A sample Zoom meeting report (input1.txt) isName,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 given as follows: The first line of the input file is a header line which includes title of each column of the data file:
Name: Name & surname
Email: Email address
Join Time: Date and time when participants join the meeting
Leave Time: Date and time when participants leave the meeting
Duration: Duration (in terms of minutes) passed between join and leave time
Each of the remaining lines includes a record for a connection of an attendee to the meeting where attendees are uniquely recognized by their name & surname. Name of an attendee might include more than one word but surname is always a single word at the end of name & surname.
Name & surname refer to the same attendee if they are the same without considering uppercase/lowercase distinction of the letters. For example:
Eda Nur Yilmaz and EDA NUR YILMAZ refer to the same attendee. Eda Nur Yilmaz and Eda Nur YILMAZ refer to the same attendee.
Of course, order and number of the words in name & surname matters. For example:
Eda Nur Yilmaz and Nur Eda Yilmaz refer to different attendees.
EDA NUR YILMAZ and EDA YILMAZ refer to different attendees.
Assume that there is a single space character between words in name & surname column of input file. For example:
EDA NUR YILMAZ and EDANUR YILMAZ refer to different attendees.
Of course, if there is a difference between surnames or names, they refer to different attendees. For example:
EDANUR YILMAZ and EDA YILMAZ refer to different attendees.
EDA YILMAZ and EDA YILMAZCAN refer to different attendees.
Notice that it is possible that e-mail address is not provided in some records.
Also, notice that there might be more than one record for some of attendees as they leave and join the meeting multiple times. Assume that there is no time overlap between multiple connections made by each attendee. That means each attendee has at most one connection at each moment of the meeting.
Assume that duration is always provided for each record and it is compatible with the difference between join and leave time so you will consider duration of each connection as the number at the end of its corresponding line (you do not need to compute duration of each connection from join and leave time).
Assume that the number of attendees in a Zoom session is not greater than 500. How to run the program:
Your program shall be executed from the command line as below using 3 command line arguments.
>
where each command line argument is described as below:
: 1st argument is input file name, i.e. name of Zoom meeting report.
: 2rd argument is minimum duration where we would like display attendees which attended the meeting at least this minimum duration.
: 3th argument is optional. If it is not provided, then the output will be provided in the original order of the records in the input file. If it is provided (where we enter the word sorted), the output will be in the alphabetical order based on surname & name combination (so the order will be based on surname and, if surnames are the same, the order will be based on name). Hints: You can use any available string sorting algorithm in your source code in the literature, but your source code is expected to be comprised by only 1 source file (all your functions including the sorting function) In this homework, you are mainly expected to use your skills from Strings.
image text in transcribed

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

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

identify current issues relating to equal pay in organisations

Answered: 1 week ago