Question: Lottery number checker: you will create a C program that takes 5 numbers as arguments and a file with lines of 5 numbers and your

Lottery number checker: you will create a C program that takes 5 numbers as
arguments and a file with lines of 5 numbers and your program will check
how many of the lines in the file match 2 or more numbers in the numbers
provided inside the file. Numbers are between 1 and 39 and there can be at
most 100 numbers in the file provided.The file mynumbers.txt has lines with the following format:
347916
68192021
i.e.5 numbers per line and a random number of lines. Assume the numbers in
each line are sorted and so are the numbers provided in the command line.
Use the following output format (assume the input is 2,3,5,6,7):
5 matches: {2,3,5,6,7}
4 matches: {2,3,5,7,10}{1,2,3,5,6}
Omit the line for n matches if you did not find any n-matches.
 Lottery number checker: you will create a C program that takes

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!