Question: In C + + Write all your code for the following steps in one file as one program. This program doesnt really do anything except

In C++ Write all your code for the following steps in one file as one program. This program doesnt really do anything except illustrates various ways to use a while loop. Each of the items below are independent of each other they are not steps to accomplishing one program.1. Ask the user to enter a single string. Ask the user to enter an integer value for a variable calledrepetitions. Use a while loop to display thisstring (of your choice) repeated repetitions times, one string per line.Hint: declare an integer called counter, initialized to zero.2. Use a while loop to count and display all the integersfrom 1 to 20. Separate numbers with a space3. Ask the user to enter a number larger than 100. Then, use a while loop to display all numbers divisible by 10 starting from the number entered by the user all the way down to 0. Only show numbers divisible by 10. Separate numbers with a tab. TAB character is displayed using the \t escape sequence. (Remember that
is a newline; use similarly).4. Use a while loop to keep asking the user for an integer as long as positive numbers are being entered. For every positive number entered, show its value multiplied by 2. Once a negative number is entered stop asking and quit the loop5. Use a while loop to keep asking for a string until a particular string is entered (for example, bye).Hint: declare at least two string variables.
 In C++ Write all your code for the following steps in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!