EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Java代写
您的位置: 主页 > 编程案例 > Java代写 >
代写Java:Big Program 2: TextManipulator - Java代写
发布时间:2021-07-25 09:40:24浏览次数:
●the behavior or syntax for specific Java programming constructsNOT AcceptableWith others you are NOT allowed to share code for this assignment in any form. All of the code that you submit with this assignment should be conceived-of and typed into the computer by you, or provided to you through the CS 200 website.AVOID leaving any code in publicly accessible places, like: outside the L drive on a lab computer, on an unsecured computer, or on an unsecured website. Remember, all Piazza posts that include assignment code fragments must be marked private (visible only to Instructors).Academic IntegrityMilestone 1: Menu, Reading and Displaying a File.1.Create a new project in Eclipse. The name of the project does not matter, but TextManipulator would be a sensible choice.2.Download Config.javaand put in your project src folder. Look through the file to see the constants to use in your program. Whenever you need those values use the constants defined in Config.java. Our testing may use different values for these constants.3.Download TextManipulator.javaand put in your project src folder. This file contains all the methods necessary for all three milestones of this program. Detailed method headers are provided for you in the file. Implement the body of each method to meet the detailed descriptions in the method headers.4.For milestone 1, implement the method bodies for the following methods keeping these exact method headers:public static char promptMenu(Scanner sc, String[] files,boolean[] modFlags, boolean modeBoth,boolean showMenu)public static String updateFileName(Scanner sc, String curFileName) public static void readInputFile(String fileName,ArrayList ArrayList String fileByLine)throws IOException5.Partially implementpublic static void display(ArrayList ArrayList String fileByLine,ArrayList ArrayList String modFileByLine, boolean modeBoth) throws ExceptionSpecifically, the method should (regardless of the value of modeBoth) produce the output as if modeBoth is false.6.For Milestone 1, an algorithm for the main method is: Begin the menu loopCall the promptMenuProcess the action returned from promptMenu Exit the loop when prompt menu returns q or QThe following menu options should be implemented in Milestone 1: 1 Prints a line consisting of 80 Config.LINE_CHAboolean[] modFlagsR, followed by the output of display, followed by another line consisting of 80 Config.LINE_CHAR. The modified file should be generated when the user selects this option by calling the manipulate method. i,I Calls the updateFileName to set the input text file path and name.h,H Toggles whether or not the full menu is displayed. See the details of the parameter showMenu in the promptMenu method header.The following menu items will be implemented in the future milestones: 2, t, T, p, P, w, W, l, L, o, O, d, D, m, M. For any other return values from promptMenu, an error message “Unknown option. ” should be displayed.7.Submit your TextManipulator.javafile to zyBooks for feedback and grading. We recommend youcomplete commenting and styling your code for each milestone as described in the Program Grading section of this document. Your highest scoring results prior to 11:59pm Wednesday, November 22thwill be recorded as your grade for this weekly milestone.Note: We may use different values in the Config.java for testing.Sample run: Output1.txtOne fish initial text: OneFish.txtMilestone 2: Translating and Reversing Words1.Best practice: Start by writing the tests.a.Create the TestTextManipulator class, following along the framework of TestMineSweeper.javafrom BP1.b.Write some tests for the matchCase, and the translate methods.c.Write some tests for the manipulate method given that only translate will be implemented.2.In this milestone, implement the bodies of the following methods within the TextManipulator class, keeping these exact method headers. See the detailed method headers for precisely how the methods should work.public static void readDictFile(String fileName,ArrayList String[] wordList)throws IOExceptionpublic static String matchCase(String template, String original)public static String translate(String word, ArrayList String[] wordList)3.Complete the implementation ofpublic static void display(ArrayList ArrayList String fileByLine,ArrayList ArrayList String modFileByLine, boolean modeBoth) throws ExceptionSo that it completely conforms to the specification.4.As described in the method body comments, do the Milestone 2 implementation of public static ArrayList ArrayList String manipulate(ArrayList ArrayList String fileByLine,ArrayList String[] dict,boolean[] modFlags)5. The following menu options should be implemented in Milestone 2: t, T Toggles between not applying or applying the translation.w, W Toggles between not applying or applying the word reverse manipulation.d, D Calls the updateFileName to set the dictionary text file path and name.m, M Toggles the display mode between “Modified” and “Interleaved”. See the details of the parameter showBoth in the promptMenu method header.6.Submit your TextManipulator.javafile to zyBooks for feedback and grading. We recommend youcomplete commenting and styling your code for each milestone as described in the Program Grading section of this document. Your highest scoring results prior to 11:59pm Thursday, November 30thwill be recorded as your grade for this weekly milestone.Note: We may use different values in the Config.java for testing.Sample run: Output2.txtOne fish initial text: OneFishDict.txtMilestone 3: Saving, Reversing Lines and Pig Latin1.Best practice: Start by writing the tests.a.Continue building your TestTextManipulator class, following along the framework of TestMineSweeper.javafromBP1. Write some tests for the pigLatin, the reverse(String) and thereverse(ArrayList String ) methods.b.Write more tests for the manipulate method given that all the manipulation methods will be implemented.2.In this milestone, implement the bodies of the following methods within the TextManipulator class, keeping these exact method headers. See the detailed method headers for precisely how the methods should work.public static String reverse(String word) public static String pigLatin(String word)public static ArrayList String reverse(ArrayList String arrL) public static void saveToFile(String fileName,ArrayList ArrayList String modFileByLine)throws IOException3.Complete the implementation ofpublic static ArrayList ArrayList String manipulate(ArrayList ArrayList String fileByLine,ArrayList String[] dict,boolean[] modFlags)4. The following menu options should be implemented in Milestone 3:2 Generates the modified file by calling the manipulate method and saves the modified file by calling the saveToFile method.p, P Toggles between not applying or applying the Pig Latin manipulation.l, L Toggles between not applying or applying the line reverse manipulation.o, O Calls the updateFileName to set the output text file path and name. 5.Submit your TextManipulator.javaand TestTextManipulator.javafiles to zyBooks for feedback and grading. Make sure all commenting and styling of your code is complete as described in the ProgramGrading section of this document. Your highest scoring results prior to 11:59pmThursday, December7th will be recorded as your grade for this weekly milestone.Sample run: Output3.txtProject designed by Marc Renault.Last update: 2017-11-09

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。