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

  Change the inheritance to private inheritance

Take the following C++ code and make the following changes. Change the inheritance to private inheritance. Change the private data member balance to protected. Define get function members of IntAccount class to retrieve name and balance.

  Write a function that will take in an array of integers

Write a function that will take in an array of integers, sum up all the values in the array, and return the result to the calling function.

  Design, write, and test a program

Design, write, and test a program that represents some of the aspects of a student

  The user enter the total rainfall for each of 12 months

Write a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display:the total rainfall for the year,the average monthly rainfall,and the months w..

  Use the lengthof the side as a member variable of the class

write a class including four member functions to compute the areas of an equilateral triangle ,square,hexagon and octagon respectively .Use the lengthof the side as a member variable of the class.

  Design a phonecall class that holds a phone number

Design a PhoneCall class that holds a phone number to which a call is placed, the length of the call in minutes, and the rate charged per minute. Overload extraction and insertion operators for the class.

  Maze program

Maze program. In this assignment you will represent a maze with a binary tree. . The starting point is node N and the ending point is node Z.

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Techniques for information hiding and encapsulation

What techniques did you utilize for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?

  Floating point values into an array

Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.

  Prevent illegal moves without crashing

Your program must gracefully handle the case when a player tries to add a non-number to a square, or add a number that violates the Sudoku rules. It should prevent illegal moves without crashing.

  Implement recursive algorithms using a stack

Show the difficulties of the added complexity and which of the two sorts is easier to implement nonrecursively? Why?

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