questionss.pdf

pp 6.1

 Write a program that reads an integer value and prints the sum of all even integer s between 2 and the input value, inclusive.

 Print an error message if the input value is less than 2. Prompt accordingly.

pp 6.2

 Write a program that reads a string from the user and prints it one character per

line.

pp 6.7

 Create modified versions of the Stars program to print the following patterns.

 Create a separate program to produce each pattern.

 Hint: Part b requires multiple loops, some of which print a specific number of

spaces.

a. b.

**********

*********

********

*******

******

*****

****

***

**

*

*

**

***

****

*****

******

*******

********

*********

**********

pp 6.9

 Write a program that reads a string from the user, then determines and prints how many of each lowercase vowels (a, e. i, o, and u) appear in the entire string.

 Have a separate counter for each vowel.

 Also count and print the number of nonvowel characters.