1. Write a java program that will "accept" a user given word if it contains at least 2 Uppercase letters, 2 Small case letters, 3 special letters and the length of the given word must be greater or equal to 8. Otherwise the program will output "not accepted". Consider ? @ #$ as special letters.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
1. Write a java program that will "accept" a user given word if it contains at least 2 Uppercase letters, 2
Small case letters, 3 special letters and the length of the given word must be greater or equal to 8.
Otherwise the program will output "not accepted". Consider ? @ _ # $ as special letters.
Transcribed Image Text:1. Write a java program that will "accept" a user given word if it contains at least 2 Uppercase letters, 2 Small case letters, 3 special letters and the length of the given word must be greater or equal to 8. Otherwise the program will output "not accepted". Consider ? @ _ # $ as special letters.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning