29. Write an application that removes extra spaces from a text file. In the days of the typewriter, it was common practice to leave two spaces after periods. We shouldn’t be doing that anymore with the computer, but many people still do. Read an original text file and output an edited version to another text file. The edited version should replace two or more consecutive spaces with one space.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
5G
12:39
Extra assign... [8035] äuöjċ äroy >
12
File Input and Output
29. Write an application that removes extra spaces from a text file. In the days of
the typewriter, it was common practice to leave two spaces after periods. We
shouldn't be doing that anymore with the computer, but many people still do.
Read an original text file and output an edited version to another text file. The
edited version should replace two or more consecutive spaces with one space.
30. Write a mail merge application. You use two files for this program. The first
is a text file that contains a template letter in the following style:
Dear <<N>>,
Because you are <<A>> years old and <<G>>, we have a
free gift for you. You have absolutely nothing to buy;
just pay the shipping and handling charge of $9.99. To
claim your gift, call us immediately.
Thank you,
Office of Claims Department
The tags <<N>», <<A>>, and <<G>> are placeholders for the person's
name, age, and gender. The second file contains the name, age, and gender
information of people to whom you want to send a letter. Use whatever
format you wish for the second file. Read two files and print out the letter
with the placeholders replaced by the actual values from the second file.
Run the program multiple times, each time using a different template file.
For this program, output the personalized letter to a customized frame.
Add menus to this frame so the user can save personalized letters to files
(one personalized letter to a file).
Transcribed Image Text:5G 12:39 Extra assign... [8035] äuöjċ äroy > 12 File Input and Output 29. Write an application that removes extra spaces from a text file. In the days of the typewriter, it was common practice to leave two spaces after periods. We shouldn't be doing that anymore with the computer, but many people still do. Read an original text file and output an edited version to another text file. The edited version should replace two or more consecutive spaces with one space. 30. Write a mail merge application. You use two files for this program. The first is a text file that contains a template letter in the following style: Dear <<N>>, Because you are <<A>> years old and <<G>>, we have a free gift for you. You have absolutely nothing to buy; just pay the shipping and handling charge of $9.99. To claim your gift, call us immediately. Thank you, Office of Claims Department The tags <<N>», <<A>>, and <<G>> are placeholders for the person's name, age, and gender. The second file contains the name, age, and gender information of people to whom you want to send a letter. Use whatever format you wish for the second file. Read two files and print out the letter with the placeholders replaced by the actual values from the second file. Run the program multiple times, each time using a different template file. For this program, output the personalized letter to a customized frame. Add menus to this frame so the user can save personalized letters to files (one personalized letter to a file).
Expert Solution
steps

Step by step

Solved in 2 steps with 8 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY