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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started