Answer to Question #74421 in C++ for Reagan
program which makes use of the following types of loops as appropriate: while, dowhile,
for, for-each. You need to use each specific loop type at least once in the assignment.
Your program should present the user with the following options
• Option A: Your program must output the following sequence (the number of terms in
the sequence is given by the user): 2, 4, 4, 8, 6, 12, 8, 16, 10, 20, 12, 24, 14, 28, 16,
32, 18, 36, 20, 40, ...
• Option B: Your program must allow the user to specify all of the parameters for a
counting sequence by asking the user for the following:
◦ a starting value
◦ a stopping value
◦ a step value
Your program must then display the resulting sequence. For example if the user
enters 0 ,10, and 2 the sequence must be: 0 2 4 6 8 10
• Option C: Your program must count the number of alphabetic characters (both upper
and lower case) in a string input by the user.
• Option X: The program must exit
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!