Take the temperature readings

Assignment Help C/C++ Programming
Reference no: EM132619196

A script to grab CPU temperature data every 30 seconds has been created. This resulted in three sets of data:

sensors-2018.12.26.txt
sensors-2019.01.26.txt
sensors-2019.02.09.txt

Click on each item to view raw text file.

Each of the encoding jobs ran for 5 to 10 hours. If you look at the data you see four temperatures for each reading. My CPU is a 4-core (8 thread) Intel i7-6700K. I found myself interested in not only the behavior of the readings, but also in the temperature differences between the 4 CPU cores.

Your task is to take the temperature readings and generate for each core:
1. A piecewise linear interpolation.
2. A global linear least squares approximation.
3. A cubic spline (or other non-linear) interpolation.

Program Arguments & Execution
Your program must accept an input filename as the first command line argument. Your program must NOT prompt the user for a filename.

1 Input Format
Data takes the form of temperatures in a txt file. All data points are whitespace delimited. For example, if I had 5 temperature readings:

would be a possible input files. Each line represents temperature readings from 4 processor cores. Process each temperature column independently. Readings are taken every 30 seconds. In this example:
• line 1 is 0 sec
• line 2 is 30 sec,
• line 3 is 60 sec.
• line 4 is 120 sec.
• line 5 is 180 sec.
Your first step should be to pre-process this data into a usable form. Conceptually, you need the data in the following format:

Programming Requirements & Constraints
o Provide a brief ReadMe file that specifies how to compile and
o Provide makefiles (or equivalent build files) for any compilable code.

Design & Style Requirements
• All code must follow best practices for:
o Indentation and spacing
o Naming conventions
o Top-down design (i.e., no monolithic functions)

Documentation Requirements

All code must be properly and fully documented using a language appropriate comment style. All functions (including parameters and return types) must be documented.

1. Doxygen can be used for C++

Attachment:- temperature_reading.rar

Reference no: EM132619196

Questions Cloud

How much of the expenses will be deductible : How much of these expenses will be deductible when figuring net income for income tax after allocation to the excluded parsonage allowance?
What richie can an ordained minister : Richie is an ordained minister. His church provides him a housing allowance, all of which he spends to rent his home and pay his utilities. Richie can
How the nation laws affect the operations of the business : Once you have selected your ethical theory and your case category, articulate the characteristics of the economic system (or combination of both systems).
How are clergy housing allowances : How are clergy housing allowances and the fair rental value of provided housing treated for tax purposes? the amounts are included in gross income
Take the temperature readings : Task is to take the temperature readings and generate for each core - A global linear least squares approximation
Prepare the journal entries to account for lease transaction : Prepare the journal entries to account for the lease transaction in the books of the lessee, Deliveries Ltd, at 1 July 2019 and 30 June 2020
How laws can make or break innovation in business : Your initial post in this discussion must be informed by the required material for this discussion. The required material for this discussion will introduce.
Which is considered nonpassive income : Which is considered nonpassive income? Income from a trade or business in which the taxpayer does not materially participate.
Prepare all journal entries required for petal patent : Prepare all journal entries required for Petal's patent for the year ended December 31, 2020. Petal Powerwash is a company that does home maintenance services.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a c program that includes a function called lobster

Write a C program that includes a function called lobster() that accepts three arguments: a character and two integers. The character argument is the character to be printed by lobster().

  Create a c program that prompts the user to enter a code

Create a C program that prompts the user to enter a single order code and reads in that order code (on the same line) from standard input (the keyboard).

  Implement a simple e-mail messaging system

Implement a simple e-mail messaging system. A message has a recipient, a sender, and a message text. A mailbox can store messages.

  Which pieces of information can be found in the ip header

There are eight network security questions. I have answered the questions however, I am unclear if I am correct. Please review and if I am wrong, please provide the correct answer along with your explanation.

  Write function to count the number of sentences

Count the number of words as well as the sentences and return and average the number of words per sentence.

  Perform the five arithmetic operations

A program that declares and prompts the user to enter two integer and performs the five arithmetic operations

  Pseudocode for constructing the reverse of an input string

For each position of the string starting at the end working backwards - Append the character at that position to the reverse of the string.

  Develop data structures - chord system

Develop data structures which are suitable to hold required information for each peer in a CHORD system. Note that index nodes can hold local information only

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Employer structures and utilize constructors

Variables and member functions are the building blocks of a class and are passed on to the objects created by that class. explains these building blocks of classes but first introduces you to structures; objects that are similar to class objects e..

  Display the list of all car record

Sales and Profits - show car model, the number of car in stock, car sold, unit cost, selling price and the profit for each car and the total profit for all cars.

  Write a c program that multiplies user entered number

Write a C program that multiplies user entered number till product of these numbers reach 1000. Which means the number that is entered multiplies itself until it reaches 1000.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd