Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 4 Loops - E4.2 Write programs that read a sequence of integer inputs and print a. The smallest and largest of the inputs. b.

image text in transcribed
image text in transcribed
Chapter 4 Loops - E4.2 Write programs that read a sequence of integer inputs and print a. The smallest and largest of the inputs. b. The number of even and odd inputs. c. Cumulative totals. For example, if the input is 17 29, the progra 18 10 19. d. All adjacent duplicates. For example, if the input is 1 3 3 4 5 5 6 program should print 356. E4.3 Write programs that read a line of input as a string and print a. Only the uppercase letters in the string. b. Every second letter of the string. c. The string, with all vowels replaced by an underscore. d. The number of vowels in the string. e. The positions of all vowels in the string. E4.4 Complete the program in How To 4.1 on page 171. Your prograr twelve temperature values and print the month with the highest E4.5 Write a program that reads a set of floating-point values. Ask th values, then print E4.10 Write a program that reads a word and prints the number of vowels in the word. For this exercise, assume that a ei ou y are vowels. For example, if the user provides th input "Harry", the program prints 2 vowels. Chapter 4 Loops - E4.2 Write programs that read a sequence of integer inputs and print a. The smallest and largest of the inputs. b. The number of even and odd inputs. c. Cumulative totals. For example, if the input is 17 29, the progra 18 10 19. d. All adjacent duplicates. For example, if the input is 1 3 3 4 5 5 6 program should print 356. E4.3 Write programs that read a line of input as a string and print a. Only the uppercase letters in the string. b. Every second letter of the string. c. The string, with all vowels replaced by an underscore. d. The number of vowels in the string. e. The positions of all vowels in the string. E4.4 Complete the program in How To 4.1 on page 171. Your prograr twelve temperature values and print the month with the highest E4.5 Write a program that reads a set of floating-point values. Ask th values, then print E4.10 Write a program that reads a word and prints the number of vowels in the word. For this exercise, assume that a ei ou y are vowels. For example, if the user provides th input "Harry", the program prints 2 vowels

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions