Question: 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.

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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!