Question: Problem 1 : Write a program that reads a string from the user, and counts the number of upper case letters, lower case letters, digits,

Problem 1: Write a program that reads a string from the user, and counts the number of upper case letters, lower case letters, digits, white spaces and all other characters in string input.

Below is a sample run:

Please enter a string:

Welcome to ITEC 2140!

Your string contains

5 upper case letters

8 lower case letters

4 digits

3 white spaces

and 1 other characters

must be written in java

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!