Write a program (using C program) to simulate a simple lottery engine. The user must enter 5
Question:
Write a program (using C program) to simulate a simple lottery engine. The user must enter 5 integer numbers, within the range of 10 to 30. The lottery engine must validate that all the numbers entered by the user are within the range of 10 to 30. The lottery engine must then produce 1 random winning number, also within the range of 10 to 30, and print it. If the winning number matches any of the 5 user numbers, a winning message must be printed congratulating the user. If the winning number does not match any of the user numbers, a “good luck next time” message must be printed. Notes: Use the clock() function to generate the winning number. You can use the given template as a starting point for your program. Using C program?
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill