subject

Assume you have a text file named text. txt. Open the file for reading. Create a second file called caps. txt for writing. Scan text. txt, until you reach the end of file. Whenever the program encounters a capital letter, copy that letter to caps. txt. Close all files when completed. Check if there is an error in opening or creating a file. If there is an error, tell the user and exit the program.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
You know the right answer?
Assume you have a text file named text. txt. Open the file for reading. Create a second file called...
Questions
question
Mathematics, 09.10.2019 21:00
question
Social Studies, 09.10.2019 21:00
Questions on the website: 13722362