Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the following questions. All questions are connected 1. Ask the user for a word & display it to the screen also display the

Please answer the following questions. All questions are connected

1. Ask the user for a word & display it to the screen also display the length of the words; give the identifier word to this variable

2. Ask the user for a group of words & display it and the length to the screen (make sure this works!!); give the identifier groupOfWords to this variable

3. Create a substring from groupOfWords to be the same length as word; give the identifier word2 to this variable

4.Find out if word is the same as word2 regardless of the capitalization

5. Find out if word is greater than or less then word2

6. Find out if word and word2 start with the same letter (hint: charAt(0))

7. Find out if word and word2 end with the same letter (hint: charAt(word.lenth()-1))

8. Join word and word2 together; give the identifier joinedWords to this variable

9. Find the first occurrence of the letter a in joinedWords

10. Find the last occurrence of the letter z in joinedWords

11. Find the first occurrence of the word abc in joinedWords

12. Find the last occurrence of the word xyz in joinedWords

13. Format joinedWords to display to the right

14. Format word and word2 to display to the left

15. Format $23.65433 to display with only 2 decimal places

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_2

Step: 3

blur-text-image_3

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago