Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
In this assignment, you are going to write a 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 inputtxt is 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
uppercaselowercase 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 email 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
How to run the program:
Your program shall be executed from the command line as below using command line
arguments.
nputFileName 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
What the program is expected to do:
Your program is supposed to do the following tasks:
Read input file so that, for each connection, store name & surname of the corresponding
attendee along with duration of the connection.
If there are multiple connections made by the same attendee:
Update duration of the first connection by adding durations of the remaining
connections.
Keep the first connection whose duration is updated and remove the remaining
connections.
Write surname, name of attendees along with duration of their total connection if their total
connection is at least Sample run :
Sample run :
inputtxt
Duman Feyza Nur
VAMAC Serhat Gokhan
Gencel Asya Hale
Tekin Ilhan
Safak Aytekin
Sample run :
inputtxt sorted
Duman Feyza Nur
Gencel Asya Hale
Safak Aytekin
Tekin Ilhan
VAMAC Serhat Gokhan
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 source file so all your functions including the
sorting function should be in the same file
In this homework, you are mainly expected to use your skills from Chapter Strings of the book.
Check out string.h library functions.
Check also character functions available in ctype.h
You may also consider using fgets, fputs functions under stdio.h if applicable to your solution.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started