Question: Q1. Code, compile and upload the following program. Name it Q1.cpp (File input, data manipulation and output.) a) Write the following two lines of text
Q1. Code, compile and upload the following program. Name it Q1.cpp (File input, data manipulation and output.) a) Write the following two lines of text to a file named "file1.txt" and close the file May 30, 2018 June 1, 2018 b) c) Read the file you just wrote (file1.txt), one character at a time. d) Replace any characters that are numbers with a hashtag character ('"). e) Replace any characters that are letters with an at symbol ('@') f) Write each character to the console. Output Example Write to file: May 30, 2018 June 1, 2018 Characters Replaced: Introduction to Cr+ Programming Design and Implementation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
