Your cart is currently empty!
I have a large amount of text data with student scores stored as series of integers and floating point values. I would like to read that data in JSON format. Given the format: number of students student id number of grades grade 0 grade 1 grade n Read in each of the…
I have a large amount of text data with student scores stored as series of integers and floating point values.
I would like to read that data in JSON format.
Given the format: number of students student id number of grades grade 0 grade 1 grade n
Read in each of the number of students students and write their id and number of grades grades to the standard output stream as indicated in the provided source code.
The application should perform as follows:
./parse source
and parses the values as indicated in the given source file:
{
“students” : [
{ “id” : 1234, “grades” : [ 98.7, 87.92, 77.32 ] },
{ “id” : 2345, “grades” : [ 93.1, 90.23, 81.21 ] }
],
“max_id” : 1234,
“max_score” : 98.7
}
I have provided you source for parse scores app and a make file. In addition, I have given you a python script to test your app. You should definitely read the makefile and I would encourage you to read the python. It is simple code and an easy intro to python.
Late assignments will lose 25% per day late, with no assignment begin accepted after 4 days (100% re-duction in points).
Check your syllabus for the breakdown of grading.