Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can You Please solve that in C++ Please ?? Exercise #2: Shifting Array Elements Write a program that uses an array of size eight (8)

Can You Please solve that in C++ Please ?? image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

Describe the new structures for the HRM function. page 676

Answered: 1 week ago