Question: using namespace std; int main() { fstream dataFile, dataFile2; dataFile.open (numbers.txt, ios: out); dataFile2.open(numbers.txt, ios::in); if (dataFile.is_open () & & dataFile.is_open()) f for ( int


using namespace std; int main() \{ fstream dataFile, dataFile2; dataFile.open ("numbers.txt", ios: out); dataFile2.open("numbers.txt", ios::in); if (dataFile.is_open () \& \& dataFile.is_open()) f for ( int i=0;i=50;i++){ dataFile2 i endl; \} for (int j=0;j=50;j++){ dataFile ; if (j&5==0){ cout j endl; 3 \} dataFile.close (); dataFile2.close() ; \} else \{ cout "CANNOT ACCESS FILE" endl; 1 3 21. (2pts) How are the values stored in the declared variables throughout this program (Initialization, User Input or File Input)? Initialization User Input File input None of the Above 22 (2pts) How are the integers being generated in this program? 23. (2pts) How many text files are being used in this program? 3 None of the Above 24. (5pts). Overall, what doesthis progtan do (when the code is syntacticaily and semantically coriect)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
