Program Requirements: Write a Java program that will 1. Ask the user to type in a sentence, using a JOption Pane.showInputDialog(). 2. The program will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use the charAt method in class String. 3. Using a JOption Pane.showMessageDialog(), tell the user how many upper and lower case e's were in the string. 4. Repeat this process until the user types the word "Stop". (Check out the method equalsignore Case in class String to cover all upper/lower case possibilities of the word "STOP"). Input ? Please enter a sentence. Every tree is not an Elm, Emilie. Cancel OK X Message i Number of lower case e's: 4 Number of upper case e's: 3 OK X

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
100%

PLEASE DONT COPY FROM OTHER BARTLEBY POSTS. EVERYTIME I POST YA ALWAYS COPY. DO UR OWN CODE

NEED CODE FOR JAVE...please paste ur indented code...

 

use decision statements, loop statements in ur code and keep it simple

Program Requirements:
Write a Java program that will
1. Ask the user to type in a sentence, using a JOptionPane.showInput Dialog().
2. The program will examine each letter in the string and count how many time the upper-case
letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use
the charAt method in class String.
3. Using a JOption Pane.showMessageDialog(), tell the user how many upper and lower case e's
were in the string.
4. Repeat this process until the user types the word "Stop". (Check out the method
equalsignore Case in class String to cover all upper/lower case possibilities of the word
"STOP").
Input
?
Please enter a sentence.
Every tree is not an Elm, Emilie.
OK
Cancel
Message
i
Number of lower case e's: 4
Number of upper case e's: 3
OK
X
Transcribed Image Text:Program Requirements: Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showInput Dialog(). 2. The program will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use the charAt method in class String. 3. Using a JOption Pane.showMessageDialog(), tell the user how many upper and lower case e's were in the string. 4. Repeat this process until the user types the word "Stop". (Check out the method equalsignore Case in class String to cover all upper/lower case possibilities of the word "STOP"). Input ? Please enter a sentence. Every tree is not an Elm, Emilie. OK Cancel Message i Number of lower case e's: 4 Number of upper case e's: 3 OK X
Expert Solution
Step 1

BELOW ? STEP BY STEP COMPLETE PROGRAM INCLUDED WITH COMMENTS AND SCREENSHOT OF OUTPUT :

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Developing computer interface
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
  • SEE MORE 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