Question: Modularity Assignment - Module 5 - Methods App Modularity Assignment Requirements Your Java file named: Methods java You wll write a Java application named, Methods
Modularity Assignment - Module 5 - Methods App Modularity Assignment Requirements Your Java file named: Methods java You wll write a Java application named, Methods java, that will consist of a main method along with a number of other static methods. Each of these methods is described below, along with the algorithm that should be implemented by the main method. Be sure to use named constants where numeric values are mentioned in the requirements. Follow all coding conventions, including the structured use of if statements and loop statements. Now that you will have multiple methods in one Java class, the required convention of including a prologue before each method must be followed. Method prologues are simply a line or two of comments explaining the purpose of a method, the reason for its parameters, and the content or meaning of the value being returned (if any). To help you understand the stated requirements that follow, a text file of this program executing (execution log) and the corresponding results written to the output file are available for your perusal and attached to this assignment. Your application must name the output file, MethodsOutput.txt Here are the requirements (algorithm!!) for your main method: Display a message of welcome to the user Prompt for and get from the user an integer greater than 99 . .As long as the input integer is not equal to 999 do the following o if the sum of the digits in the input integer is odd do the following . Prompt for and get from the user a String longer than 2 characters .if the input string is not a palindrome change the value of the input string to include one underscore " between each of the characters in the string Create a new version of this string that has no vowels Write to the output file a line containing: the input integer, input string, input string without . vowels [Else] If the sum of the digits in the input integer is even o Write to the output file: the input integer and the sum of the digits in that integer Prompt for and get from the user another integer greater than 99 o .Close the output file . Display an application termination message Here are the details of the methods you MUST write was part of this application. These methods ill be called directly by main. Where inside main they are needed (called) will be obvious if you understand what main needs to do and what each of these methods is defined to do. Ask your instructor if this is not clear. If you find a need for any other methods, you should email your instructor about that to see if that makes sense in case you are doing more work than is necessary. All of these methods will be marked as public and static. The return types and the parameters will vary. You must be careful to name the methods exactly as given here, use the exact same return types, AND use the exact same types parameters in the same order given here. The grader code will assume these method names, return types, and parameter lists are identical for all submissions. Note: the names of parameters can be T their data types or order, nor can new parameters be added, nor can any be removed If you have questions on this, simply email your instructor your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
