subject

LAB 2.3: File 1/0 - CSV update 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
in c++#include #include #include using namespace std;int main(int argc, char *argv[]) {string inputFile;string outputFile;// Assign to inputFile value of 2nd command line argument// Assign to outputFile 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 ouptut csv file, each integer separated by a comma.// Close output stream. return 0;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the algorithm for building a binary tree program
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
You know the right answer?
LAB 2.3: File 1/0 - CSV update This program should:
• get names of input and output files fr...
Questions
question
Mathematics, 15.06.2021 22:20
question
English, 15.06.2021 22:20
question
English, 15.06.2021 22:20
question
Mathematics, 15.06.2021 22:20
question
English, 15.06.2021 22:20
Questions on the website: 13722360