Question: Edit: You can use whatever variables you want, I will change them to my language later. But if you mean those screenshots i posted i

Edit: You can use whatever variables you want, I will change them to my language later. But if you mean those screenshots i posted i have explained the meaning below the photos. But the text file we read shows data in this order: The date and time the assignment was returned;The assignment name;The assignments ID number;Users ID number. And the program should read this file and then return how many of each assignment was returned. I've explained everything below better, but thats the idea of the program. Comment if you still have a question. Edit: What does "file system" comment mean? Make a C-language program that reads a text file and creates it from the data in the lines linked list, analyze the data and then write the results to the screen as well as to a file. The starting point is a log file taken from Moodle with the tasks of the programming course return dates for which you need to find out basic information such as the return quantities for different tasks.

Make a program compile using Makefile Be sure to put header information in each file you restore. 2. Program Requirements The program should have a main menu with the following items: 1) Read the file 2) Analyze the data 3) Print the results 0) Stop

The following functions are related to these functions: 1. Read the file. The program asks the user for the name of the file to be read, reads the file and always forms one node from the data in one row in the linked list. The node record contains one return time, date and time, task as a string and identification number of the name and the identification number of the returner. The return time should be stored in the node as a time record (struct tm), the name of the task as a string, task and user ID numbers as integers. File after reading, the program reports the number of records read as well as the first and dates of last return. 2. Analyze the data. The program goes through the linked list and calculates the different tasks refund amounts. There are 60 different tasks, so you can make a table of these tasks and use the task identifier as the starting point for the index in the table. It is a good idea to put records in the table that always have single-task returns the number and name of the task as a string. You may want to format the records number 0 and the task name Blank. 3. Print the results. The program asks the user if this wants the results to be displayed or in a file, and in the case of a file, the name of the file to be saved. This Assignment Baseline.docx then a table is printed / saved with the name of each task followed by it return amount separated by a semicolon. 4. Finish. The program clears the list and stops running the program.

Other requirements related to the operation of the program: 1. Create a subroutine to ask the user for the file name and use it for both read and write to ask for the name of the file you want to write. 2. Divide the program into three code files and the corresponding header files. Wing main program and menu subroutine to main program.c file, file processing related subroutines to the ali1.c file and other subroutines to the ali2.c file. Each C file is paired with a header file with the same name. 3. The program should always close the files after the file processing is completed. 4. When writing a file, any previous file will be destroyed when opened. 5. When reading the data in a file from the list, the list must be cleared before adding the data. 6. In the analysis and recording subroutines, be the first to check that there is data and in the list if not, notify the user and return to the calling program.

How the file looks like : each data is separated with ";"

but there is a first line in the file for the names of data

1.The date and time the assignment was returned

2.The assignment name

3. The assignments ID number

4. Users ID number

Edit: You can use whatever variables you want, I will change them

The program should return:

1. Assignment name

2. How many were returned (combined all the returns for the assignment)

to my language later. But if you mean those screenshots i posted

And also all these error messages should be included

6. Error messages Not all program error messages appear in the example run, so they are grouped below. Use them according to need.  "Unknown selection, please try again."  "Memory allocation failed"  "Failed to read file"  "Failed to write to file"  "Not to analyze, read the recovery file first."  "Not printable, first analyze the recovery file."

Example run for the program has to look like this

1) Read the file 2) Analyze the data 3) Print the results 0) Stop Your selection: 1 Enter the file name: data15.csv A total of 15 returns for the period from 08.09.2020 to 11.02.2021. 1) Read the file 2) Analyze the data 3) Print the results 0) Stop Your selection: 2 There were a total of 15 returns in 13 different assignments, averaging 1 per assignment. 1) Read the file 2) Analyze the data 3) Print the results 0) Stop Your selection: 3 Print to file (k / e): k Enter a file name: results_short.csv 1) Read the file 2) Analyze the data 3) Print the results 0) Stop Your selection: 4 Unknown choice, please try again. 1) Read the file 2) Analyze the data 3) Print the results 0) Stop Your selection: 0 Thank you for using the program.

Leave a comment asap if u dont understand something. You can use whatever variable names u like, it just has to be programmed according to these instructions.

8/09/20, 10:46; L0111;1; 6607164 8/09/20, 10:47;L0173; 3; 6607164 8/09/20, 10:47; L0114;4;6607164 8/09/20, 10:47;L0112;2;6607164 8/09/20, 10:48; L0175;5; 6607164 8/09/20, 17:50;L0111;1;3209775 L0111;211 L01T2; 206 L0173; 206 L0194; 206 L0175; 205 L0271; 200 LO2T2; 198 8/09/20, 10:46; L0111;1; 6607164 8/09/20, 10:47;L0173; 3; 6607164 8/09/20, 10:47; L0114;4;6607164 8/09/20, 10:47;L0112;2;6607164 8/09/20, 10:48; L0175;5; 6607164 8/09/20, 17:50;L0111;1;3209775 L0111;211 L01T2; 206 L0173; 206 L0194; 206 L0175; 205 L0271; 200 LO2T2; 198

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!