Fundamentals of Computer Programming (10) Dean (max grade: 4.0) 1. The objective of the project is to practise the implementation and application of dynamic data structures (eg lists, trees etc) and...

1 answer below »
Write a program that elaborated output files for each student separately.Student’s ID is a file name


Fundamentals of Computer Programming (10) Dean (max grade: 4.0) 1. The objective of the project is to practise the implementation and application of dynamic data structures (eg lists, trees etc) and memory management. Using of dynamic data structures is a sine qua non condition. 2. Application of STL containers (eg vector, list etc) does not fulfil the condition stated in p. 1. 3. Dynamically allocated arrays do not fulfil the condition stated in p. 1. 4. The std::string type can only be used for strings (eg file names). It is not allowed to keep sequences of data (eg numbers) as strings. 5. A data structure has to accepted by a laboratory instructor before implementation. 6. Source code has to be split into header (*.h) and source (*.cpp) files. 7. All functions have to be commented in the doxygen style. 8. Any permutation of command line switches has to be handled. Final exam grades are gathered in examination protocols. Each course has its own protocol in the following format: The first line keeps a course name, the second – professor’s name, and then students’ grades (one in each line) as tuples: 〈name〉 〈surname〉 〈student ID〉 〈grade〉 〈date〉 Example of a protocol file: Introduction into Modern Genetics Rehor Mendel, PhD DSc Jan Jaworek 14332 3.5 2018-02-29 Bartłomiej Bukowy 14344 4.5 2018-01-30 Karol Krol 12433 3.0 2018-01-28 Number of protocols in not limited. Write a program that elaborated output files for each student separ- ately. Student’s ID is a file name. The file holds student’s name and surname and final grades. The courses are presented as tuples: 〈professor’s name〉 〈course name〉 〈grade〉 〈date〉 The tuples are sorted by course names. Example output file for student Jan Jaworek: Jan Jaworek ID: 14332 Prof. Nicolaus Copernicus Mechanics of the Solar System 4.5 2018-01-14 Rehor Mendel, PhD DSc Introduction into Modern Genetics 3.5 2018-02-29 This is a command line program with a switch: -i input files with protocols
Answered Same DayJan 21, 2021

Answer To: Fundamentals of Computer Programming (10) Dean (max grade: 4.0) 1. The objective of the project is...

Arun Shankar answered on Jan 22 2021
140 Votes
12433
Karol Krol
ID: 12433
Dr. Donald Trump Foundations of Algebra 3.250000 2018-01-29
Rehor Mendel, PhD DSc Introduction into Modern Genetics 3.00000
0 2018-01-28
14332
Jan Jaworek
ID: 14332
Dr. Donald Trump Foundations of Algebra 2.500000 2018-02-29
Prof. Nicolaus Copernicus Mechanics of the Solar System 2.500000 2018-02-29
Rehor Mendel, PhD DSc Introduction into Modern Genetics 3.500000 2018-02-29
14344
Bartlomiej Bukowy
ID: 14344
Prof. Nicolaus Copernicus Mechanics of the Solar System 3.500000 2018-01-30
Rehor Mendel, PhD DSc Introduction into Modern Genetics 4.500000 2018-01-30
file1.txt
Introduction into Modern Genetics
Rehor Mendel, PhD DSc
Jan Jaworek 14332 3.5 2018-02-29
Bartlomiej Bukowy 14344 4.5 2018-01-30
Karol Krol 12433 3.0 2018-01-28
file2.txt
Mechanics of the Solar System
Prof. Nicolaus Copernicus
Jan Jaworek 14332 2.5 2018-02-29
Bartlomiej Bukowy 14344 3.5 2018-01-30
file3.txt
Foundations of Algebra
Dr. Donald Trump
Karol Krol 12433 3.25 2018-01-29
Jan Jaworek 14332 2.5 2018-02-29
main
main.cpp
#include
#include
#include
#include
#include
#include "record.h"
using namespace std;
struct record* head = NULL; // head pointer to the linked list of records
void AddRecord(struct record* newptr)
{
// There are no records in the linked list
if(head==NULL)
{
head = newptr;
return;
}
// Add to the head of the linked list
struct record* temp = head;
head=newptr;
newptr->next =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here