Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Create the psuedocode for an application class named Monogram. Its main() method holds three variables that hold your first, mi...Asked by James
Create the psuedocode for an application class named Monogram. Its main() method holds three variables that hold your first, middle, and last initials, respectively. Create a method to which you pass the three initials and that displays the initials twice—once in the order of first, middle, and last, and a second time in traditional monogram style (first, last, middle).
Answers
Answered by
bobpursley
https://answers.yahoo.com/question/index?qid=20170220231446AAhk9MB
Answered by
James
That link wasn't helpful but thanks
Answered by
EinsteinSmartsBrain
computer programming
posted by tom Friday, March 10, 2017 at 9:12pm.
Create the psuedocode for an application class named Monogram. Its main() method holds three variables that hold your first, middle, and last initials, respectively. Create a method to which you pass the three initials and that displays the initials twice—once in the order of first, middle, and last, and a second time in traditional monogram style (first, last, middle).
computer programming - anonymous Tuesday, March 14, 2017 at 11:39pm
import java.util.Scanner;
public class Names {
public static void main (String[]args) {
//declare variables
String firstName,
String middleName,
String lastName,
String monogram;
// Create a scanner class
Scanner input = new Scanner (System.in);
System.out.println("Enter your first name: ");
firstName = input.nextLine();
System.out.println("Enter your middle initial: ");
middleName = input.nextLine();
System.out.println("Enter your last name: ");
lastName = input.nextLine();
input.close();
monogram = String.valueOf(first.charAt(0)).toLowerCase() +
String.valueOf(middle.charAt(0)).toUpperCase() +
String .valueOf(last.charAt(0)).toLowerCase();
System.out.println(monogram);
}
}
computer programming - excel Tuesday, March 14, 2017 at 11:41pm
import java.util.Scanner;
public class Names {
public static void main (String[]args) {
//declare variables
String firstName,
String middleName,
String lastName,
String monogram;
// Create a scanner class
Scanner input = new Scanner (System.in);
System.out.println("Enter your first name: ");
firstName = input.nextLine();
System.out.println("Enter your middle initial: ");
middleName = input.nextLine();
System.out.println("Enter your last name: ");
lastName = input.nextLine();
input.close();
monogram = String.valueOf(first.charAt(0)).toLowerCase() +
String.valueOf(middle.charAt(0)).toUpperCase() +
String .valueOf(last.charAt(0)).toLowerCase();
System.out.println(monogram);
}
}
Hope Dat Was Help
There are no AI answers yet. The ability to request AI answers is coming soon!