Program on string representing

Assignment Help Computer Engineering
Reference no: EM133222

Question

Our program has to take a string representing a sentence in English and format it properly. The input sentence could have any or all of following errors-

Random letters can be capitalized.

The sentence could not end with a proper punctuation mark (period, question mark, or exclamation point).

There may be spaces at the beginning or end, or more than one space between words.

Format the sentence to fit following rules-

The first letter of first word should be capitalized.

The word "I" has to be capitalized.

All other letters in all words must be in lowercase.

The sentence should end with a punctuation mark. If original sentence did not end with a punctuation mark, add a period. (If an original sentence ended with more than one punctuation mark, it is not your responsibility to detect or fix this. yet, you should not cause this problem yourself by adding a period if sentence already ends with a punctuation mark.)

There have to be no spaces at the beginning or end of sentence.

There must be only a single space between words.

Reference no: EM133222

Questions Cloud

Describe a wireless network card : Describe a wireless network card
Generate a context diagram of the system : Generate a context diagram of the system
International human resource management : Human resource management is more challenging for a multinational business than a strictly domestic business, international assignments maintain to be an important aspect of international business from the organization's perspective
Illustrate general network design : Illustrate general network design
Program on string representing : Program on  string representing
What is an interface : What is an interface
Write down program for a bank account : Write down program for a bank account
Introduce relationship sets or additional entity sets : Introduce relationship sets or additional entity sets
Problems on word processing application : Problems on word processing application

Reviews

Write a Review

Computer Engineering Questions & Answers

  Propose a wiring plan for network servers

Propose a wiring plan for network servers.

  Suggest a fragmentation design of the account relation

Suggest a fragmentation design of the Account relation

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  Calculate the output value of problem

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Execute the boolean functions

Execute the Boolean functions

  Plan the decision table with all possibilities

Plan the decision table with all possibilities

  How to redesign the coding design

How to redesign the coding design? Write down a sentence for each change you have optional, indicating what data entry problem (from part a) change will eliminate.

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  What does this following algorithm calculate

What does this following algorithm calculate

  What do you mean by pseudocode and case subroutine call

What do you mean by pseudocode and case Subroutine call

  Write down problem on strings in java

Write down problem on strings in java

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd