Question: For this project you are tasked with building a user application that will select sets of random numbers. Your application must use functions and

For this project you are tasked with building a user application that will select sets of random numbers. Your application must use functions and pass values. Your program will pick sets of 6 random numbers with values of 1 to 53. The user should be able to choose how many sets to produce. The challenge will be to ensure that no number in a set of 6 Is a repeat. Your program should prompt the user and ask them how many number sets they wish to have. This could be used as a lottery ticket quick pick application. For those who do not condone gambling, it could just be a tool to select random numbers for a game of fun. Objectives: . . Use of functions and passing by value. Use of repetition constructs (loops). The understanding and use of selection. The use of the random number generator and seeding. Display formatted output using input/output statements. Use format control strings to format text output. Minimum Requirements: Your program must make use of the following. 1. Your program must compile on the Osprey server. -25 points if I have to fix it to compile. Make sure to watch the videos on how to copy files into osprey and how to verify them on osprey. 2. Your program must use a function to prompt the user for input and return it to the calling function. This function will determine the number of groups of 6 random numbers to generate. The function should also allow the user the opportunity to enter in a value to quit. Recall that a 'Q' has a value and a 'q' has a value. You may use a character or a special number value to determine the user has selected to quit and your program would indicate this to the calling function. Your function will not exit the program but return a value to the caller indicating the user wants to quit. 3. Your program must use a function to get and return random values to the calling function. This function should take as arguments a value for the range and the offset. This makes the function reusable for other random number needs. The function. should return the random integer value to the calling function. -20 max for no function or no usable function, -15 for no range control, -10 for no parameters being used. 4. The range and offset to be used in your program must use a defined constant and The range should be inclusive values 1 thn 53.
Step by Step Solution
There are 3 Steps involved in it
Program CODE include include include define RANGE 53 define OFFSET 1 ... View full answer
Get step-by-step solutions from verified subject matter experts
