Question: Given a string name, e.g. Bob, return a greeting of the form Hello Bob!. helloName(Bob) Hello Bob! helloName(Alice) Hello Alice! helloName(X) Hello X!
Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!".
helloName("Bob") "Hello Bob!" helloName("Alice") "Hello Alice!" helloName("X") "Hello X!"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
