Purchase Solution

Three Letter Acronym

Not what you're looking for?

Ask Custom Question

Write a Java program that allows a user to enter three words, and displays the appropriate three-letter acronym (constructed from the input) in all uppercase letters. If user enters more than three words, ignore the extra words.

Purchase this Solution

Solution Summary

Well commented, easy to understand program with sample session.

Solution Preview

Please rename attached 439045-ThreeLetterAcronym.java as ThreeLetterAcronym.java first. After that you can compile and run it as follows.

javac ThreeLetterAcronym.java
java ThreeLetterAcronym

A sample execution session would look like following.

[CommandPrompt] java ThreeLetterAcronym
Input three words to compute the Acronym.
Extra words will be ignored.
hello World there
Acronym is: HWT

Java code in file ThreeLetterAcronym.java is also pasted below (Please follow the code in attachment only, ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C# variables and classes

This quiz contains questions about C# classes and variables.