Answered step by step
Verified Expert Solution
Link Copied!

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 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) 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
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.
>|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 2:
Sample run 3:
input1.txt 1181
Duman Feyza Nur 122.00
VAMAC Serhat Gokhan 118.00
Gencel Asya Hale 118.00
Tekin Ilhan 118.00
Safak Aytekin 120.00
Sample run 4:
input1.txt 118 sorted
Duman Feyza Nur 122.00
Gencel Asya Hale 118.00
Safak Aytekin 120.00
Tekin Ilhan 118.00
VAMAC Serhat Gokhan 118.00
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 (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 8 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.
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

Students also viewed these Databases questions

Question

Express each of the following as a percent. 1.45

Answered: 1 week ago

Question

Design a health and safety policy.

Answered: 1 week ago