subject
Chemistry, 28.02.2021 16:10 zanaplen27

Complete the three method declarations in the program below. Your solution must go in the file MultipleSalutations. java (click on the dropdown menu above the code to view it); the file with the main method cannot be modified. Ex: if the input is: Sanjiv Holly Arup Welcome ! Then the output of the program should be: Hello, Sanjiv. Welcome, Holly. Welcome, Arup!

import java. util. Scanner;
public class Main { public static void main (String [] args)
{ Scanner scnr = new Scanner(System. in);
MultipleSalutation nameTag = new MultipleSalutation();
String firstPersonName = scnr. next();
String secondPersonName = scnr. next();
String thirdPersonName = scnr. next();
String altSalutation = scnr. next();
String altMark = scnr. next();
nameTag. printSalutation(firstPersonName); nameTag. printSalutation(secondPersonName, altSalutation);
nameTag. printSalutation(thirdPersonName, altSalutation, altMark);
}
}
public class MultipleSalutation {
public void /* enter your solution here */ {
System. out. println("Hello, " + personName + ".");
}
public void /* enter your solution here */ {
System. out. println(customSalutation + ", " + personName + ".");
}
public void /* enter you solution here */ {
System. out. println(customSalutation + ", " + personName + customMark);
}
}

ansver
Answers: 1

Another question on Chemistry

question
Chemistry, 22.06.2019 04:50
Write the overall equation for the reaction for lithium battery
Answers: 2
question
Chemistry, 22.06.2019 10:00
Americium-241 undergoes fission to produce three neutrons per fission event. if a neutron-absorbing material is mixed in with this sample so that the rate of neutron production drops down to 1.8 neutrons per fission event, which will be effective at achieving a critical mass? check all that apply. remove a deflective shield surrounding the sample. remove absorbent material mixed in with the sample. compress the sample of americium-241.
Answers: 1
question
Chemistry, 22.06.2019 17:30
The polymer used for the nonstick surface of cooking utensils is 24.0%c and 76%f by mass. what is the empirical formula of this polymer?
Answers: 2
question
Chemistry, 23.06.2019 09:00
What sources of error may have contributed to the percent yield not being 100 percent? think about things that may have led to inaccurate measurements or where mass of the product could have been lost if this experiment was conducted in a physical laboratory.
Answers: 2
You know the right answer?
Complete the three method declarations in the program below. Your solution must go in the file Multi...
Questions
question
Physics, 20.03.2020 09:54
question
Mathematics, 20.03.2020 09:54
Questions on the website: 13722367