Question: CIT-11 HW#2, Do not worry about the code, jusst the algorithem documentation to fill out the sheet with the question CIT111 Homework #2: First Java

CIT111 Homework #2: First Java Programs Page 2 Problem 3: Document an algorithm and write a program where the user is prompted to enters data into two string variables, first and last, representing a name. The output will be the first and last name converted to "pig-latin": Convert both names to lowercase letters. . . Remove the first character from each name and append to the end of the name followed by "ay". Capitalize the new first letter of each name. Combine both names into a single String and output the result For example, if the user inputs "John" for the first name and "Smith" for the last name, then the program should create a new string with the text "Obniay Mithsay". Hint: Use the substring and tolowerCase and to UpperCase methods in constructing the pig-latin new name. Develop a Java program that accomplishes your algorithm that involves user input for the first and last name as strings. Include appropriate comments such as the problem number, your name, and the class at the beginning of the program, and any other comments as needed to explain the algorithm and translation into Java statements, Submit your algorithm Word or PDF document and Java source code via Blackboard for this problem. Be sure that your Java source code compiles cleanly or you will receive no credit. Student Name: Class/Section: HW/Assignment: CIT-111 I PROBLEM STATEMENT: ASSUMPTIONS: INPUT: OUTPUT: TEST PLAN of POSITIVE RESULTS (Inputs, expected results - remember boundary conditions) 1 Test 1.1 2 Test 1.2 3. Test 1.3 TEST PLAN of NEGATIVE RESULTS (inputs that should not result in desired results) 1 Test 2.1 2 Test 2.2 3. Test 2.3 ALGORITHM (Pseudo-code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
