Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 . 2 4 . 1 : LAB * : Program: Text message decoder 0 / 6 ( 1 ) Use scnr . nextLine (

3.24.1: LAB*: Program: Text message decoder
0/6
(1) Use scnr.nextLine() to get a line of user input into a string. Output the line. (3 pts)
Ex:
Enter text:
IDK if I'll go. It's my BFF's birthday.
You entered: IDK if I'll go. It's my BFF's birthday.
(2) Search the string (using indexOf()) for common abbreviations and print a list of each found abbreviation along with its decoded meaning. Print each acronym in the same order as shown in the abbreviations list below. (3 pts)
Ex:
Enter text:
IDK if I'll go. It's my BFF's birthday.
You entered: IDK if I'll go. It's my BFF's birthday.
BFF: best friend forever
IDK: I don't know
Support these abbreviations:
BFF -- best friend forever
IDK -- I don't know
JK -- just kidding
TMI -- too much information
TTYL -- talk to you later

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

Comment on the materiality implications of the Sarbanes-Oxley Act.

Answered: 1 week ago