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:30
Which statement best describes the relationship between period and frequency of light waves? a) in wave b the period increases and the frequency decreases from wave a. b) in wave a the period increases and the frequency decreases from wave b. c) in wave b the period is shorter and the frequency is greater than in wave a. d) in wave a the period is shorter and the frequency is greater than in wave b.
Answers: 1
question
Chemistry, 22.06.2019 06:30
Summarize possible ways in which phases of matter could combine to form a solution.
Answers: 2
question
Chemistry, 23.06.2019 08:00
Suppose a pair of chemical compounds a and b can react in two different ways: a + b -> c reaction 1 gives product c. a + b -> d reaction 2 gives product d. the following facts are known about the two reactions: . reaction 1 is endothermic and reaction 2 is exothermic. if a reaction vessel is charged (filled) with a and b , then at first d is produced faster than c. use these facts to sketch a qualitative reaction energy diagram for both reactions. note: because these sketches are only qualitative, the energies don? t have to be exact. they only have to have the right relationship to each other. for example, if one energy is less than another, that fact should be clear in your sketch.
Answers: 3
question
Chemistry, 23.06.2019 10:50
Mach the labels with the symbols on the weather map
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
Mathematics, 13.10.2021 14:00
question
Mathematics, 13.10.2021 14:00
Questions on the website: 13722363