Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1 :Write a program that reads a line of input into a single String object. Use loops to do the following: Print all digits
Problem :Write a program that reads a line of input into a single String object. Use loops to do the following:
Print all digits in the String. Print the digits on one line, with a blank in between each digit.
Print all lowercase letters in the String. Print the letters on one line, with a blank in between each letter.
Print all uppercase letters in the String. Print the letters on one line, with a blank in between each letter.
Print the number of blanks in the String.
Print the number of digits in the String.
Print the number of lowercase letters in the String.
Print the number of uppercase letters in the String. Sample Output:
Please enter a String: Welcome to CSC
The digits are:
The lower case letters are: e l c o m e t o
The upper case letters are: W C S C
The number of blanks are:
The number of digits are:
The number of lowercase letters are:
The number of upper case letters are:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started