Question: 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

USING JAVA USING JAVA Purpose: Use math functions, string manipulation and input/output

to create an alternative to Twitter called Chipper. Requirements 1. Ask theUSING 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!