Question
Write a program in java to read a string object consisting 300 characters or more using index input Stream reader. The program should perform following
Write a program in java to read a string object consisting 300 characters or more using index input Stream reader. The program should perform following operations. The String must have proper words and all kind of characters.
a, Determine the length of the string count the number of letters in the strings
, count the number of numeric object
d. Calculate the number of special character
e. Compute the ratio of the numeric to the total
f. Compute the rate of space character to all special characters.
g. Find the position of character in the first occurrence.
h. Then find the position of this character in the first 50 characters.
I. Find the position of (a) after the 15th character.
j. If the word on the first starts with a change to upper case.
k. Find the position of each ($).
If a line ends with a period. Count the number of lines with such construct.
Count the number of space on the last line.
Please write it in a simple way.
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