Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Just write the following code to perform this task. a) Paste input file data (specified below) into a file named address.txt. This file has
C++
Just write the following code to perform this task. a) Paste input file data (specified below) into a file named address.txt. This file has 3 fields separated by a "!" character per person; the first field is the person's name, the second field is the street address, and the third field is the City State and Zip Code. b) Create a blank text file named output.txt. c) Read data from input.txt into the program one line at a time. d) Use string parsing to output the address as three separate lines. Input File Samuel Jones!1313 Mockingbird Lane!Anytown CA 33456 Brenda Smith!123 Main Street!Someplace GA 45623 Bruce Wayne!999-99 1st Ave! Gotham City NY 87394 Output File Samuel Jones 1313 Mockingbird Lane Anytown CA 33456 Brenda Smith 123 Main Street Someplace GA 45623 Bruce Wayne 999-99 1st Ave Gotham City NY 87394
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started