Question: Write a C++ program that will choose five numbers between and including 1 and 75. It then will choose a sixth number between 1 and

Write a C++ program that will choose five numbers between and including 1 and 75. It then will choose a sixth number between 1 and 15. The program should be structured as follows:

a) A separate function should choose the first five numbers and also check that there are no repeats. You must make sure there are no repeats!!! If a repeat occurs the system will then re-choose that number but now you must make sure it was not one of the previous numbers chosen as well.

b) A separate function will then print out the list of six numbers in a one row.

c) The main section of the program should request the user enter how many sets of numbers would you like to be displayed. The program would then generate that many sets of numbers.

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!