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, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
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
Health, 16.10.2019 15:50
question
Computers and Technology, 16.10.2019 15:50
Questions on the website: 13722360