Answered step by step
Verified Expert Solution
Question
1 Approved Answer
rAppjava - Edipse IDE Window Help See also: Views E Problems view D Quick Fix Outline 8= More results: 8 F Iz22x32 Search for Problems
rAppjava - Edipse IDE Window Help See also: Views E Problems view D Quick Fix Outline 8= More results: 8 F Iz22x32 Search for Problems 8 main C RegisterApp - 5 execute(Nami Coverage 1.9 errors, 2 warnings, 1 other f) In the src > main package, you will notice a class called RegisterApp that has a method called execute, which accepts a Name and a Register object and returns a String. Currently, it simply returns an empty string. It should however do the following: - Remove a name at index 1 from the Register regst. - Add the Name nm (passed as a parameter to the execute method) to the register. - Return a String that represents each name in the register that has a first name containing cither of the characters a or e in the format: "initial.surnamefirst3letters@email.com", (e.g. Fred Jones would be "f.jon@email.com"), each followed by a new line. Each resultant email address should therefore be in lowercase and only the first three letters of the surname should be included. In the test > main package there is a further JUnit Test Case RegisterAppTest containing a unit test called testExecute, which assesses whether the execute method behaves correctly. Please note: Your solution to part f ) will be marked by using a different input data set of names within the register to ensure your solution works dynamically based upon any given data set and is not hardcoded in any way. g) As this is a portfolio question, you should fully document the Register class with Javadoc, i.e. class header, constructor/method description and tags where appropriate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started