I need help building a program please.

Write a complete C++ program that will do all the following tasks.
Each type of loop (while, for, do/while) must be used at least once.
Create a loop that will ask the user if they want to repeat everything inside the loop. The
loop should execute the first time without asking the user, and then the question to
the user will be the last step inside the loop.
Inside that loop:
Ask the user to enter an integer greater than 1. Read in the input. If the user
value is not greater than 1, then write out an error message and repeat the
process until the user enters a value in the correct range.
Generate and output n random integer values in the range of 10 to 20 (including
10 and 20), where n represents the user input from the previous loop.
Ask the user to enter an integer in the range of 100 to 10,000,000. Read in the
input. If the user value is not in the right range, then write out an error
message and repeat the process until the user enters an acceptable value.
Find and output the largest integer whose factorial value is less than or equal
to m, where m is the user input value from the previous loop. For
example, if the user entered 1000, then 6, which has a factorial of 720, is
the largest integer, since 7! is greater than 1000.
Ask the user if they want to repeat all of the steps inside the loop and read in their
response.
Advice is to break the problem and execute the task one by one

try to write to logic for inner part of loop and then implement in the loop.
for e.g. write logic for factorial and comparison.
input from user.
Error checking
loop implementation
Topic archived. No new replies allowed.