Computer Science, asked by sowmya2186, 4 months ago

1. Create a class called Palin with following data members and member methods.
Data members:
String word
String revword;
Member Methods:
Palin()-Default constructor and store the default value as “Madam”.
Palin(String)-Parameterized constructor to initialize the word.
void check()-To check whether the given word is palindrome word or not.
void display()-to display the original word and reversed word.
Write a main method to create an object of the above class and invoke the functions.

2. Write a program that alters a string in such a way that the alphabet next to vowels gets replaced by an equivalent opposite case alphabet.
Ex: Input – Protection
Output- ProTeCtiON

3. Accept a string, for Example,”BHARAT” and write a method in a class that prints the following.
B
H H
A A A
R R R R
A A A A A
T T T T T T
4.Write a program to accept a line of text and decode by replacing few letters with special characters according to the following instructions.
A or a - @
D or d - #
I or i - &
M or m - *
X or x - $
Ex: Input - Admin staff is taking Xerox copies.
Output - @#*&n st@ff &s t@k&ng $ero$ cop&es.

5.Write a menu driven program for the following functions
​1. Encode
​2. Decode.
By accepting the line of text and number of move (Note :use 26 alphabets only )
​Example​: INPUT - JAVA IS FUN. Move -2 characters
​​​ENCODE : LCXC KU HWP.
​​​DECODE : JAVA IS FUN.​

Answers

Answered by rohitchoudhary9433
1

Answer:

This seemingly idle question may not be all that simple to answer. One thing is sure, 1,000 words all written without any paragraph spacing will drive your reader a little mad. The first point is clear: 1,000 words is a lot of words. Split it up into paragraphs for heaven’s sake, or expect your intended readers to head for the hills for a chance to rest their weary eyes on some open space.

So given you need to transform your 1,000 words into something easy on the eyes, you know you have to split it into paragraphs. How do you do that?

A Sentence Is an Idea, a Paragraph Is Closely Related Ideas

Whatever you’re discussing, you’ll discover a number of concepts which you presumably planned before you started writing. To make it all hang together nicely, you add a bit of space when you transition from one area of discussion to another. As with any rule, there are exceptions, but broadly speaking, essay writing and academic writing calls for paragraphs in the 100-200 word range.

Bear in mind that academic and essay writing usually means you’re writing for a fairly dedicated reader, but what about the huge chunk of the population who are frightened off by big chunks of text, even if they are only six or seven lines long (depending on font)?

Journalists and Commercial Writers Keep Their Paragraphs Short

“White space” is a wonderful illusion that tells your reader what you have to say is pretty easy to take in. I’ve seen some news articles in which each paragraph is only one sentence long. I feel that’s taking it to extremes, and it can have the opposite effect of making your writing look disjointed. I like to see at least three or four lines to a paragraph, and as an indication, my longest paragraph so far is just 74 words long.

You can assume commercial writing and news reports will have paragraphs approximately half as long as the ones you’d see in academic or essay writing. In this case, we’re looking at ten to twenty paragraphs per 1,000 words instead of five to ten.

Dialogues Have a New Paragraph for Every New Speaker

One context in which a paragraph can be as short as five characters is direct speech involving two or more speakers.

“Oh!”

Count ’em: two characters for the word, and three for the punctuation marks. To begin with, you’d introduce or refer to your speakers, but once the conversation is flowing nicely, you can start skipping them at times.

“No!” exclaimed Mary.

“Yes!” John couldn’t help being amused at Mary’s surprise.

“You don’t really mean it, do you?”

“Of course I mean it, silly!”

It’s a lot less cumbersome to skip a mention of the speaker than to add “said Mary” and “John said” after every direct quote. So theoretically, you can have a paragraph consisting of one word plus punctuation marks. 1,000 words in direct speech would therefore mean you’d write way more than the five or ten paragraphs our initial guideline suggested.

How Many Paragraphs in 1,000 Words?

Here’s a basic summary.

Probably not less than 5 paragraphs.

For easy reading, probably no less than 10.

For direct speech, one for every time you change speaker (however many times that is).

Does It Matter?

Not necessarily, but bear in mind that even teachers who are paid to read students’ writing get tired eyes. The easier it is to read and understand what you have written, the more likely your teacher is to notice those clever details you included. There’s also a distinct possibility they won’t start hating you while they read your work. Yes, they’re supposed to be unbiased, but everyone is human!

When writing in other contexts: an article, a blog, or a book, keeping paragraphs short helps to hold your reader’s attention. Yes, there are famous writers who just wrote without much attention to paragraphs, or even punctuation, but their work isn’t an easy read, and no matter how educated we may be, “easy” is invariably the preferred option.

To take easy reading to the next level, try using sub-headers every paragraph to three paragraphs. This is applicable to blogs and web pages, and to a certain extent, in academic writing. When you hit a web page for info, what do you do? I look at the header, and then I scan the sub-heads to get an idea of the writer’s approach to the subject. If it looks like fluff, I kill the page and move on. But if the sub-headers are interesting, and seem to tell me there’s something worth learning, I’ll read the whole piece.

Whatever You Do, Use Paragraphs

Using paragraphs well (with or without sub-heads) makes your work more accessible to your reader, and, to a certain extent, it shows you’ve ordered your thoughts and are discussing one point at a time. If you can’t organize your work into paragraphs consisting of related thoughts, you may be jumping around too much. Check it out and try again.

– 2,000 words for essays,


sowmya2186: what is question and what u answered
Similar questions