subject

Data 1 1 2 3 4 5 6
Data 2
6 4 8 10
This program should get names of input and output files from command line (NOT from user input) read in integers from a csv (comma-separated values) file into a vector
Compute the integer average of all of the values
Convert each value in the vector to the difference between the original value and the average
Write the new values into a csv file
First bullet point specifically
#include
#include sfstream>
#include
using namespace std;
int main(int args, char *argv[]) {
string inputFile;
string outputFile;
// Assign to inputFile value of 2nd command line argument
// Assign to output File value of 3rd command line argument
// Create input stream and open input csv file.
// Verify file opened correctly.
// Output error message and return 1 if file stream did not open correctly.
// Read in integers from input file to vector.
// Close input stream.
// Get integer average of all values read in.
// Convert each value within vector to be the difference between the original value and the average.
// Create output stream and open/create output csv file.
// Verify file opened or was created correctly.
// Output error message and return 1 if file stream did not open correctly.
// Write converted values into guptut csv file, each integer separated by a comma.
// Close output stream.
return ;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
Does read theory have answers keys ?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
You know the right answer?
Data 1 1 2 3 4 5 6
Data 2
6 4 8 10
This program should get names of input and out...
Questions
question
Mathematics, 30.01.2020 04:43
question
Mathematics, 30.01.2020 04:44
Questions on the website: 13722360