Word Game Analysis You have been contracted to write a program that evaluates the performance of professional word game players (yes, this is a thing!). To perform this evaluation, you are to analyze the words they play. Write a program that accepts a number of words to analyze. Each word should be accepted individually. When the program completes, the longest and shortest words are both displayed alongside their length, along with the average word length. As there must be at least one word to analyze, validate input to make sure a number of words greater than zero is put in. Your output should be formatted very similarly to the following. Also notice that the average length is rounded to two decimal places. Hint: To get the shortest word length, you can set your "length of shortest word" variable to an arbitrarily high number before you begin.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section: Chapter Questions
Problem 14PP
icon
Related questions
Question

I need help on this? 

Word Game Analysis
You have been contracted to write a program that
evaluates the performance of professional word game
players (yes, this is a thing!). To perform this evaluation,
you are to analyze the words they play. Write a program
that accepts a number of words to analyze. Each word
should be accepted individually. When the program
completes, the longest and shortest words are both
displayed alongside their length, along with the average
word length.
As there must be at least one word to analyze, validate
input to make sure a number of words greater than
zero is put in.
Your output should be formatted very similarly to the
following. Also notice that the average length is rounded
to two decimal places.
Hint: To get the shortest word length, you can set your
"length of shortest word" variable to an arbitrarily high
number before you begin.
Transcribed Image Text:Word Game Analysis You have been contracted to write a program that evaluates the performance of professional word game players (yes, this is a thing!). To perform this evaluation, you are to analyze the words they play. Write a program that accepts a number of words to analyze. Each word should be accepted individually. When the program completes, the longest and shortest words are both displayed alongside their length, along with the average word length. As there must be at least one word to analyze, validate input to make sure a number of words greater than zero is put in. Your output should be formatted very similarly to the following. Also notice that the average length is rounded to two decimal places. Hint: To get the shortest word length, you can set your "length of shortest word" variable to an arbitrarily high number before you begin.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning