Menu

[solved]-Given First Name Last Name Student School Name Return Greeting Message Example First Name Q39079203

Given the first name and the last name of a student and a schoolname, return a greeting message. For example, if the first name is”David”, the last name is “Smith”, and the school name is “GGC”,the greeting message is “Welcome, David Smith, to GGC!”.

getGreetingsForCollege(“David”, “Smith”, “GGC”) → “Welcome, DavidSmith, to GGC!”
getGreetingsForCollege(“Linda”, “Jones”, “UGA”) → “Welcome, LindaJones, to UGA!”
getGreetingsForCollege(“Ellen”, “Edwards”, “GSU”) → “Welcome, EllenEdwards, to GSU!”

public String getGreetingsForCollege(String firstName,String lastName, String school) {
String message = “Welcome, ” firstName + lastName + “, to “+ school + “!”;
return message;
}

Please help me fix this

Expert Answer


Answer to Given the first name and the last name of a student and a school name, return a greeting message. For example, if the f… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *