Semester Project - Input Library and Language Selection

Thomas J. Kennedy

Contents:

If you have not already done so… read the Semester Project Description

1 Deliverables

Submit a single archive that contains a/an:

  1. updated README.md
  2. input library in your selected language

2 Handling Input

Your first steps should be to:

  1. Select the input library that matches your language of choice from https://github.com/cstkennedy/cs417-examples/tree/master/SemesterProject-CPU-Temps.

  2. Preprocess the Semester Project input data into a usable form.

Consider the following table. Each column would represent a single “array.”

 
Time (sec) Core 0 Core 1 Core 2 Core 3
0 61.0 63.0 50.0 58.0
30 80.0 81.0 68.0 77.0
60 62.0 63.0 52.0 60.0
90 83.0 82.0 70.0 79.0
120 68.0 69.0 58.0 65.0

Conceptually, this “table” can be represented by five vectors (or similar data structure), e.g.,

Example 1: Data Structures: C++
std::vector<int> time = {};
std::vector<double> readings_core_0 = {};
std::vector<double> readings_core_1 = {};
std::vector<double> readings_core_2 = {};
std::vector<double> readings_core_3 = {};
Example 2: Data Structures: Java
int[] time = new int[numberOfReadings];
double[] readings_core_0 = new double[numberOfReadings]; 
double[] readings_core_1 = new double[numberOfReadings]; 
double[] readings_core_2 = new double[numberOfReadings]; 
double[] readings_core_3 = new double[numberOfReadings]; 
Example 3: Data Structures: Python
time = []
readings_core_0 = []
readings_core_1 = []
readings_core_2 = []
readings_core_3 = []