Write a program with that reads characters from an input file, converts them to upper case and writes them to an output file. It will also need to count the number of characters and the number of lines in the input file and display them to the screen in a reader friendly format.

Note: Include an input and output function.

Questions

  • What are some options for formatting output to the screen or to a file, explain?
  • What does setf(ios::fixed); do, explain?
  • What does the (ios::showpoint) command do, explain?
  • What does the width function do, explain?
  • What does the (ios:right) and (ios::left) commands do, explain?
  • How do you unset a flag, explain?
  • What are manipulators, explain?
  • What does the setw function do, explain?
  • What does the setprecision function do, explain?
  • How do you pass file streams to functions, explain?
  • What will the while(in_stream>>next) code do when it reaches the end of the file, explain?
  • What do the get and put functions do, explain each?
  • How are blank and return spaces handled by the get function, explain?
  • How can you read characters from a file until you get to the end of line, explain?
  • What is a formal parameter with a default value, explain?
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.