The reverse of each word, and a palindrome checker

Assignment Help C/C++ Programming
Reference no: EM13166336

give us the first letter of each word, the first half of each word, the reverse of each word, and a palindrome checker to see if the word is a palindrome. I would like for us to read in a list of words from a file, store them in a vector of strings, then process each one. In addition to each of the above functions (which is how you should write each of them), you need to write functions that tell me the number of 3 letter words, 4 letter words, 5 letter words, and those greater than 5 letters long. I would like for the code to display the palindromes and give the total number of palindromes in the list. I would like to have it display the longest word in the list as well as the shortest word. These words will be unique using the data file provided. Implement this as we have done with other projects in lab where we create a vector, read in the values from the file and store them in a temp variable, then push them onto the vector. Next write functions that will do the above requirements.

The following words should be saved to a file called "wordlist.dat" which is read in by the program:

hello

winner

miles

bob

anthropomorphic

racecar

lasagna

tunnel

there

noon

buster

muster

cannon

shoutitout

hannah

ollo

remember

clearance

disability

trendsetter

philanthropist

antidisestablishmentarianism

meter

elephant

chant

quadracycle

linear

rotational

madam

eye

it

eventually

concerted

forest

forgery

amalgamation

tarnation

confounded

higher

balance

checkpoint

career

ghost

stage

steppets

clog

remove

resend

growing

hilarious

gnome

found

home

are

fantastical

shark

 

 

Reference no: EM13166336

Questions Cloud

At what celsius temperature did water boil on the top : Mt. Kilimanjaro in Tanzania is the tallest peak in Africa (19,340 ft.). On a particular day, the barometric pressure at the top of the mountain was 330 torr. On that day, at what Celsius temperature did water boil on the top of the mountain?
How many grams of water where in the sample : A 45g piece of ice at 0 degree C is added to a sample of water at 21 degree C. All of the ice melts and the temp of water decreases to 0 degree C. How many grams of water where in the sample?
Explain what concentration of this base : What concentration of this base will produce a pH of 10.13?
At what temperature will it burst : a flask that can withstand an internal pressure of 2500 torr, but no more, is filled with a gas at 21.O C and 780 torr and heated. At what temperature will it burst?
The reverse of each word, and a palindrome checker : give us the first letter of each word, the first half of each word, the reverse of each word, and a palindrome checker to see if the word is a palindrome.
Compute the corresponding change : If the equilibrium constant for a one electron redox reaction at 298k is 8.7*10^4, calculate the corresponding change in G and Ecell
Index of the largest fibonacci number : What is the index of the largest Fibonacci number that can be represented exactly as a MATLAB double-precision quantity without roundoff error
Compute the balances of the factory overhead accounts : Journalize the entries to record the operations, identifying each entry by letter. Compute the July 31 balances of the inventory accounts. Compute the July 31 balances of the factory overhead accounts.
What is the molarity of the prepared buffer : Calculate the pH of a solution formed by mixing 250 mL of 0.150 M NaHCO3 with 250 mL of 0.100 M Na2CO3. What is the molarity of the prepared buffer?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Least number of comparisons needed

What is the least number of comparisons needed to sort an array of 6 numbers, in the worst case, using any sorting algorithm that sorts with binary comparisons? Explain

  The rpn calculator program

The RPN calculator program should read the RPN expression as an entire line from stdin.Input will consist of a single line. After completing the evaluation of the expression, the program should print the contents of the entire stack, starting with th..

  Given the following test scores and grade equivalents

Given the following test scores and grade equivalents, write a function which is passed a score, and returns a letter grade based on the score entered. A number less than 0 or greater than 100 is invalid.

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Write a count occurrences() function that accepts a string

Write a CountOccurrences() function that accepts a string to be searched and a sub-string to be found. The function should return the # of times the sub-string is found. Write a tester file that declares a secret sentence as a constant.

  Find the sixth maclaurin polynomial for sin x

Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.

  Whitewater high school has contracted

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer

  Write a c++ program that prompts the user for a double

Write a C++ program that prompts the user for a double that is either positive or negative.

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

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