Question: Methods Write the following methods: 1. Given a person's first name, return the following message Happy birthday to you, dear The blank is where the


Methods Write the following methods: 1. Given a person's first name, return the following message "Happy birthday to you, dear The blank is where the given first name should be. getHappyBirthdaySong("David") "Happy birthday to you, dear David!" getHappyBirthdaySong"Dana")"Happy birthday to you, dear Dana!" getHappyBirthdaySong("Edward") "Happy birthday to you, dear Edward!" public static String getHappyBirthdaySong(String firstName) i 2. Given a student's first name, last name, and GPA, return a message that contains the following items: first name, last name, a dash (-), and the GPA. There is a space between every two adjacent items. gpaMessage("David", "Smith", 3.96) "David Smith 3.96" gpaMessage("E", "Johnson", 4)"E Johnson 4.0" gpaMessagel"Ada", "Harrison", 2.96) "Ada Harrison -2.96" public static String gpaMessage(StringiNae, String lastName, double gpa) f 3. Given the first name and the last name of a student and a school name, 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, David Smith, to GGC!" getGreetingsForCollege("Linda", "Jones", "UGA")"Welcome, Linda Jones, to UGA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
