fork download
  1. //Natalie Zarate CSC 5 Chapter 10, P.589, #4
  2. /*******************************************************************************
  3.  * DISPLAY WORD AND AVERAGE WORD LENGTH
  4.  *
  5.  * This program will prompt the user for a phrase. Then, the program will
  6.  * detwemine the number of words and letters that are in the phrase. Using the
  7.  * number of letters in the phrase, it will then compute the average word length
  8.  * then display it.
  9.  * _____________________________________________________________________________
  10.  * INPUT
  11.  * ****************************************************************************/
  12. #include <iostream>
  13. #include <string>
  14. using namespace std;
  15.  
  16. /*******************************************************************************
  17.  * GetString
  18.  *
  19.  * This function will prompt the user for a phrase and then stroe into an
  20.  * array.
  21.  * _____________________________________________________________________________
  22.  * INPUT
  23.  * GetString(
  24.  * phrase, - The phrase the user inputs
  25.  * chars,) - The total character count
  26.  *
  27.  * OUTPUT
  28.  * phrase
  29.  *
  30.  *
  31. int main()
  32. {
  33. // your code goes here
  34. return 0;
  35. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty