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
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e não consigo tira-la no chorme
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, 07.12.2020 23:40
question
Mathematics, 07.12.2020 23:40
Questions on the website: 13722363