6.36 LAB: Acronyms Need help with this lab.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

6.36 LAB: Acronyms Need help with this lab.

Post by answerhappygod »

6.36 LAB: Acronyms
Need help with this lab.
6 36 Lab Acronyms Need Help With This Lab 1
6 36 Lab Acronyms Need Help With This Lab 1 (81.19 KiB) Viewed 61 times
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply