num.txt(Save this file under D Drive.Then the path of the file is D:\\\ um.txt) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 CPP Code #include #include using namespace std; //Declaring Global variable int sum=0; //Function declarations void readFromFile(); void writeToFile(); /* Function implementation which will * read the numbers from the file and calculates the sum of * the numbers which are multiples of 2 or 5 */ void readFromFile() { int number,sum=0; //fileInput reference ifstream dataIn; //Opening input file dataIn.open(\"D:\\\ um.txt\"); while(dataIn>>number) { if(number%2==0 || number%5==0) { sum+=number; } } //closing the input stream dataIn.close(); } /* Function implementation which will * display the sum into another text file */ void writeToFile() { //fileoutput reference ofstream myfile; //Opening the file myfile.open (\"D:\\\ um1.txt\"); //Writing the contents to the file myfile <<\"The Sum of Multiples of 2 or 5 is :\"< Solution num.txt(Save this file under D Drive.Then the path of the file is D:\\\ um.txt) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 CPP Code #include #include using namespace std; //Declaring Global variable int sum=0; //Function declarations void readFromFile(); void writeToFile(); /* Function implementation which will * read the numbers from the file and calculates the sum of * the numbers which are multiples of 2 or 5 */ void readFromFile() { int number,sum=0; //fileInput reference ifstream dataIn; //Opening input file dataIn.open(\"D:\\\ um.txt\"); while(dataIn>>number) { if(number%2==0 || number%5==0) { sum+=number; } } //closing the input stream dataIn.close(); } /* Function implementation which will * display the sum into another text file */ void writeToFile() { //fileoutput reference ofstream myfile; //Opening the file myfile.open (\"D:\\\ um1.txt\"); //Writing the contents to the file myfile <<\"The Sum of Multiples of 2 or 5 is :\"<.