Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

Identify the cause of a performance problem. page 363

Answered: 1 week ago