6.36 LAB: Acronyms Need help with this lab.
Posted: Sun May 15, 2022 8:40 am
6.36 LAB: Acronyms
Need help with this lab.
6.36 LAB: Acronyms Instructor note: GOOD ADVICE: Watch out for white space and capitalization. Test your code. Test it again. An acronym is a word formed from the initial letters of words in a set phrase. Define a method named createAcronym that takes a string parameter and returns the acronym of the string parameter. Append a period () after each letter in the acronym. If a word begins with a lower case letter, don't include that letter in the acronym. Then write a main program that reads a phrase from input, calls createAcronymo with the input phrase as argument, and outputs the returned acronym. Assume the input has at least one upper case letter Ex: If the input is Institute of Electrical and Electronics Engineers the output should be I.E.E.E. The program must define and call a method: public static String createAcronym(String userPhrase) Hint: Refer to the ascii table to make sure a letter is upper case. 670502076118 LAB ACTIVITY 6.36.1: LAB: Acronyms 0/10 LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram 4 5 /* Define your method here */ 6 7 public static void main(String[] args) { 8 /* Type your code here. */ 9 10 ) 11 } Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box
Need help with this lab.
6.36 LAB: Acronyms Instructor note: GOOD ADVICE: Watch out for white space and capitalization. Test your code. Test it again. An acronym is a word formed from the initial letters of words in a set phrase. Define a method named createAcronym that takes a string parameter and returns the acronym of the string parameter. Append a period () after each letter in the acronym. If a word begins with a lower case letter, don't include that letter in the acronym. Then write a main program that reads a phrase from input, calls createAcronymo with the input phrase as argument, and outputs the returned acronym. Assume the input has at least one upper case letter Ex: If the input is Institute of Electrical and Electronics Engineers the output should be I.E.E.E. The program must define and call a method: public static String createAcronym(String userPhrase) Hint: Refer to the ascii table to make sure a letter is upper case. 670502076118 LAB ACTIVITY 6.36.1: LAB: Acronyms 0/10 LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram 4 5 /* Define your method here */ 6 7 public static void main(String[] args) { 8 /* Type your code here. */ 9 10 ) 11 } Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box