Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this. This needs to be written in very simple java code (for beginners) Write a mail merge application called MailMerge.java. Your

I need help with this. This needs to be written in very simple java code (for beginners)

Write a mail merge application called MailMerge.java. Your program should read the input for the problem from System.in. The expected input will consist of three parts:

- A tag specification consisting of a list of space-separated tags on a single line, where each tag is of the form >, with an alphabet letter between two sets of angle brackets.

- A database consisting of lines of database entries, where each line has as many space-separated data items as there are tags specified in the first line of input. The database lines will conclude with a line containing only three dashes, "---".

- A template for the mail merge. All of the lines after the "---" should be considered the contents of a form letter with tags to be replaced.

Once all of the input has been read, the program should output should be a series of exact copies of the form letter template, with the occurrences of tag specifications replaced by corresponding items from the database.

image text in transcribed

image text in transcribed

Example Run #1 John 35 male Sally 28 female Megan 55 female Dear >, Because you are >, 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<>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago