Question: Can You Please solve that in C++ Please ?? Exercise #2: Shifting Array Elements Write a program that uses an array of size eight (8)
Exercise #2: Shifting Array Elements Write a program that uses an array of size eight (8) and then prompts the user to input eight integers for the array. The program should do the following: Print the numbers in the output given in the sample Input Output. : The user is prompted to enter an integer value k, the program wil then shift the array elements k positions to the right, while the last K elements are moved to the beginning of the array. For example: if we have an array [ 2 3 4 5 6 7 8]. shifting 2 positions to the right should give the array [781 23456]. Sample Input/Output: entered nunbers aret t1 2 37 Exercise #3: Strings, operations Write a C++ program that prompts the user to enter a sentence, the program then does the following: 1 Prints the total characters in the sentence. 2 Prints the word count of the sentence, assuming only one space between each tow words. 3 Prints total vowel { a, e, i, o, u} in the sentence. Prints the vowel frequency as shown in the sample below s Prints the sentence in reverse. Prints the total number of characters other than the alphabets (Note: space is a character) 7. Prints the sentence in a way so that the case of each character is changed, i.e. from lower to upper and vice versa. Sample input/output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
