Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program is in Java! Included below are some input files for reference! Please include all comments so I can understand the code! Thanks! translateHyperlink(my

This program is in Java!

Included below are some input files for reference!

Please include all comments so I can understand the code!

Thanks!

image text in transcribed

translateHyperlink("my link", "http://www.cs.school.edu");

would return the String "my link"

"my link"

image text in transcribed

image text in transcribed

image text in transcribed

Sample .txt files are shown below (Title in bold):

first.txt

*********************************************************************************************************************************************************

This is my **first** Web page. Go to my [second page.](second.html) ![keyboard image](l_kbusbby2.jpg "my keyboard of choice") I teach or have taught the following classes: + CSE 101 + CSE/ISE 102 + CSE 114 + CSE/ISE 312 

*********************************************************************************************************************************************************

markdownexample.txt

*********************************************************************************************************************************************************

This is a sample `Markdown` file. *Markdown* is a simple notation for translating **plaintext** documents into **HTML**. Instead of using exotic [HTML](http://www.w3.org) tags like ``, Markdown lets you use simple text symbols to indicate how to display different kinds of text. For example, here is some code to display a "smiley-face" image: ![Happy face](/mysite/images/smiley.jpg "My smiley face image") If you run this text through your *MarkdownTranslator* program, you should receive a neatly-formatted HTML version of this *file*. + This is a simple unordered list + It contains a total of three list items + and should be surrounded by the correct UL tags in the HTML version This is the *last* line in the test file. 

********************************************************************************************************************************************************

Implement a small Java program that prompts the user to enter the name of a (plain text) input file and a name for a (plain text) output file. Your program should read the (Markdown-formatted) contents of the input file, one line at a time, and generate an appropriately-named output file that contains an HTML version of the input file's contents. There are multiple ways to approach this task; we recommend implementing the following helper methods along the way 1. AtranslateEmphasis) method. This method takes a single string argument representing the text that should be placed in HTML tags. It returns a new String consisting of the argument wrapped in opening and closing tags. For example, a call to translateEmphasis ("blah blah" would return the String "blah blah" 2. AtranslatestrongEmphasis() method. This method works just like translateEmphasis( except it adds HTML tags instead of em> tags. 3. AtranslateHyperlink) method. This method takes two String arguments (some link text and a URL) and returns a String that contains a properly formatted HTML hyperlink according to the description given previously. For example, a call to

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

Multiply the expressions. (2x-3y)(2x + 3y)

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago