Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING JAVA USING JAVA Purpose: Use math functions, string manipulation and input/output to create an alternative to Twitter called Chipper. Requirements 1. Ask the user

USING JAVA

image text in transcribed

image text in transcribedUSING JAVA

Purpose: Use math functions, string manipulation and input/output to create an alternative to Twitter called Chipper. Requirements 1. Ask the user for 3 messages to send using the following characteristics: a. Generate a random number to ask the user for a of chars for the message. The random number should be between 1 and 50. Use Math random to generate 3 numbers rand1, rand2, rand3 b. Have the user type the strings into 3 separate variables c. Find the length of the string and report if the string is too long, then truncate it and reassign it to the string 2. String variables: Keep track of all three messages in msg1, msg2, msg3 strings. Also combine (concatenate) all 3 messages into 1 string called msgAll 3. int variables: Keep track of the lengths of all three messages (after truncating) in msg1Length, msg2Length, msg3Length 4. Counters a. Count and report the total of characters in DOsgAU, b. Count and report the number of vowels in msgA (this will require a loop). c. Count and report the number of spaces in msgAll (this will require a loop 5. Display msgA backwards (this will require a loop). 6. Display Vertically (one char per line). Sample output (user input in bold): Note: The output is incomplete, just use as a reference. Message #1: Enter a message with 18 chars or less: This is a message to you! oops! Y message has more than 18 characters It has been truncated to our This is a message Message #2: Enter a message with 40 chars or less: Message Message #3: Enter a message with 28 chars or less

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

More Books

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago