Lab 20

  1. Write a complete C++ program that does the following.
  2. For example, the following represents one run of the program.
    How many words? 5 Freddy and Max were absent absent were Max and Freddy

  3. Write a complete C++ program that does the following.
  4. For example, the following represents one run of the program.
    How many rows? 4 Enter 4 row lengths: 2 7 1 5 ** ******* * *****

  5. Write a complete C++ program that does the following.
  6. For example, the following represents one run of the program.
    Enter a positive integer (at most 100): 8 Enter 8 integers: 3 -1 4 -10 17 18 19 -11 -1 -10 -11 19 18 17 4 3