In this homework assignment, you are going to code a java program which prompts the user for Strings and practice with String methods while allowing you to explore and understand a little Java code before we begin going in depth with Java. тер You will also need to test out this program to ensure the correctness of the algorithm and code. You will need to develop test data that will represent all possible kinds of data that the user may enter. The assignment: Using Scanner or JOptionPane, prompt the user for • Four words Output • Each word • The length of the word • The position of each variable in the word Sample output: (Sample user output written in bold) Enter four words:|| She Smiles Shoe Erisbee Moed 1 - aha i langeh - 31 paassion of voraia a - - - 2 -- o- -: - - Moed 2- ansiaa langeh - I poaition of vowala a- -, 'a'- 4, "A"- 2, *o- -, 'u'- -: Moed - ahoa I langeh - 4 I poaition of vovaia a- -, *a'- 1, A"- -, "o'- 2, *u'- - Moed - teiabea langth - I poaition of vovala a- -:, *a'- 5, "4'- 2, "o'- -, s'- -: *All variable names are completely up to you, as long as they're descriptive *Use the correct data types *Use comments to explain what youre coding *Put your name in a comment

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

can you plz write in java.util.scanner form 

and can you make so i can copy and past it 

In this homework assignment, you are going to code a java program which prompts the user for Strings
and practice with String methods while allowing you to explore and understand a little Java code before
we begin going in depth with Java.
You will also need to test out this program to ensure the correctness of the algorithm and code. You will
need to develop test data that will represent all possible kinds of data that the user may enter.
The assignment:
Using Scanner or JOptionPane, prompt the user for
Four words
Output
Each word
The length of the word
• The position of each variable in the word
Sample output: (Sample user output written in bold)
Enter four words:|
She
Smiles
Shoe
Frisbee
Word 1 - ahe | langth - 31 poaition of vorela: : - -1 s- 2 1--1 o- -1 *'- -1
Word 2 - amilea langth - EI poaition of vomala: ':'- -1, ''- 4, :'- 2, 'o'- -1, '- -1
Word 3 - ahos | langth - 4I peaition of vomala: 'a'- -1, 'a'- 3, A'- -1, 'o'- 2, u'- -1
Word 4 - =iabaa | langth - 7| poaition of vorala: 'a'- -1, '- 5, '- 2, 'o'- -1, u'- -1
* All variable names are completely up to you, as long as they're descriptive
*Use the correct data types
*Use comments to explain what youre coding
"Put your name in a comment
Transcribed Image Text:In this homework assignment, you are going to code a java program which prompts the user for Strings and practice with String methods while allowing you to explore and understand a little Java code before we begin going in depth with Java. You will also need to test out this program to ensure the correctness of the algorithm and code. You will need to develop test data that will represent all possible kinds of data that the user may enter. The assignment: Using Scanner or JOptionPane, prompt the user for Four words Output Each word The length of the word • The position of each variable in the word Sample output: (Sample user output written in bold) Enter four words:| She Smiles Shoe Frisbee Word 1 - ahe | langth - 31 poaition of vorela: : - -1 s- 2 1--1 o- -1 *'- -1 Word 2 - amilea langth - EI poaition of vomala: ':'- -1, ''- 4, :'- 2, 'o'- -1, '- -1 Word 3 - ahos | langth - 4I peaition of vomala: 'a'- -1, 'a'- 3, A'- -1, 'o'- 2, u'- -1 Word 4 - =iabaa | langth - 7| poaition of vorala: 'a'- -1, '- 5, '- 2, 'o'- -1, u'- -1 * All variable names are completely up to you, as long as they're descriptive *Use the correct data types *Use comments to explain what youre coding "Put your name in a comment
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random access
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education