Question: L2T04 - Compulsory Task 1 Please help with this Java task (It must be a working solution): Follow these steps: Create a new java file
L2T04 - Compulsory Task 1
Please help with this Java task (It must be a working solution):
Follow these steps: Create a new java file called Poetry.java This task is going to be based on your Level 1 Capstone Project II where you created the Caesar cipher. (I will attach screenshots of the JavaScript below) Recreate your project from JavaScript into Java. Include file input-output functionality in your code so that the program can read a text file, encode it, and output the encoded message into a new text file Use your program to read the content of the text file poem.txt. For each line in poem.txt, write a new line in a new text file encodedPoem.txt that is encoded by the cipher. Compile, save and run your file.



107108109110111112113114115116//Usethefunctionstoencodethemessageletascii=toAscii(originalMessage);letencodedAscii=encode(ascii);letfinaloutput=toChar(encodedAscii);//Outputthefinaloutputtotheuseralert(Yourencodedmessageis:$ffinalOutput}2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
