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 21:30
In one or two grammatically correct sentences, write a definition for the term molecule geometry
Answers: 3
question
Chemistry, 23.06.2019 01:00
Which process results in the release of energy stored in the products of photosynthesis? a. polymer synthesis b. depolymerization c. digestion d. cellular respiration
Answers: 1
question
Chemistry, 23.06.2019 05:30
Scientist think that animals with remarkably similar embryo development probably shared a common ancestor
Answers: 1
question
Chemistry, 23.06.2019 07:30
In a laboratory determination of the atomic weight of tin, a sample of tin is weighed in a crucible. nitric acid is added, and the reaction proceeds to give a hydrated tin(iv)oxide plus no2and h2o. the hydrated tin(iv)oxide is then heated strongly and reacts as follows: sno2.xh2o(s)sno2(s)+ xh2o(g)the sno2is finally cooled and weighed in the crucible. explain the effect on the calculated atomic weight of tin that would result from each of the following experimental errors: (a)considerable spattering occurs when the nitric acid is added to the tin.(b)the hydrated tin(iv)oxide is not heated sufficiently to change it completely to tin oxide.
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, 04.09.2019 22:30
Questions on the website: 13722360