Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

These are the instructions for a java file. We have not learned array of string or anything that complex. I am trying to solve this

These are the instructions for a java file. We have not learned array of string or anything that complex. I am trying to solve this possibly using the IndexOf method.

image text in transcribedimage text in transcribed

13.4 Assignment 4: Formal Name Generator Complete the generateFormalName method so that... you return the formal name (Mr. or Ms. + last name) given a full name and gender (Strings) as parameters. --You can assume a valid name & gender (any case allowed) is passed in. Example 1: ("Bob Smith", "MALE") passed in should generate "Mr. Smith" Example 2: ("Maggie May", "feMALE") passed in should generate "Ms. May" Tip 1: You are given a String formalName initialized to the empty String -- you will want to concatenate other Strings onto this to produce the full formalName. Tip 2: Write your algorithm in English first. Tip 3: Think of all of the methods at your disposal and which could be helpful. LAB ACTIVITY 13.4.1: Assignment 4: Formal Name Generator 0 / 10 String Practice.java Load default template... public class String Practice { public String generateFormalName(String fullName, String gender) //Your solution goes here return formal Name

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

what do you think of apple's guidelines that says it will reject

Answered: 1 week ago