Question: Need help on computer science, to write c++ program(Visual Studio) and pseudocode please!!! Your task is to create a simple program that prompts the user

Need help on computer science, to write c++ program(Visual Studio) and pseudocode please!!!

Need help on computer science, to write c++ program(Visual Studio) and pseudocode

please!!! Your task is to create a simple program that prompts the

user for two file names, opens both files, reads the data from

Your task is to create a simple program that prompts the user for two file names, opens both files, reads the data from one file and copies that data to the other file After this is done, the files are both closed and the program ends. 1. You are going to create a pseudocode document for this lab. It WILL help you write the program. Make sure that do this FIRST. It should NOT contain any C++ code. Name it Lab06Pcode.txt. 2. our program, Lab06.cpp, needs to use both an ifstream object and an ofstream. object. You can refer to the Lecture 10 slides and the FileRead.c program for a starting place. 3. You only need to use #include Kfstream for these but make sure that you also have using std: :ifstream and using std: :ofstream. You will use string objects to get the filenames from the user. That should make it 4. a lot easier 5. If one or both of the files cannot be opened, you need to provide the user with an error message about that fact, including the offending name(s). It then needs to prompt the user for two more names and continue until the program can open both the input and output files. 6. If the program can only open one file, it needs to close() he other file before trying to open any new ones. You may also need to clear() the stream that failed to open, as in my Input File.clear 7. The program should use the getline0 function to read data from the input file a line at a time (see FileRead.cpp) and you can write it to the output file with the stream insertion operator. Your task is to create a simple program that prompts the user for two file names, opens both files, reads the data from one file and copies that data to the other file After this is done, the files are both closed and the program ends. 1. You are going to create a pseudocode document for this lab. It WILL help you write the program. Make sure that do this FIRST. It should NOT contain any C++ code. Name it Lab06Pcode.txt. 2. our program, Lab06.cpp, needs to use both an ifstream object and an ofstream. object. You can refer to the Lecture 10 slides and the FileRead.c program for a starting place. 3. You only need to use #include Kfstream for these but make sure that you also have using std: :ifstream and using std: :ofstream. You will use string objects to get the filenames from the user. That should make it 4. a lot easier 5. If one or both of the files cannot be opened, you need to provide the user with an error message about that fact, including the offending name(s). It then needs to prompt the user for two more names and continue until the program can open both the input and output files. 6. If the program can only open one file, it needs to close() he other file before trying to open any new ones. You may also need to clear() the stream that failed to open, as in my Input File.clear 7. The program should use the getline0 function to read data from the input file a line at a time (see FileRead.cpp) and you can write it to the output file with the stream insertion operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!