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

  Calculate the component voltages

Input voltage will be a step voltage that is 0 volt before time t = 0 and V in

  How to concern about personal privacy, efficiency

How to concern about personal privacy, efficiency

  Write down an account class

Write down an Account Class.

  How to create program that performs arithmetic function

How to create program that performs arithmetic function Prompt a user for values for the variables. Pass both variables to methods named sum() and difference().

  Develop a checkout lane simulation

Develop a checkout lane simulation that can be used to determine the optimal number of lanes that Cougar Mart should have open.

  How to illustrate a memory map for a system

Illustrate a memory map for a system with a memory capability of 512MB. Each memory location in system is 8 bits.

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

  What is oracle administration documentations

What is oracle administration documentations

  Which loop arrangement be best for accessing an array

Which loop arrangement be best for accessing an array.

  Create a simplify credit card transaction management program

Create a simplify credit card transaction management program.

  Problem on stack

Problem on Stack

  Examine how computer forensics investigations pertain to law

Examine how computer forensics investigations pertain to law

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