Question: PROGRAM IN C Description: You are to read a file of numbers. You will break apart each number into an array (a set). Compare each
PROGRAM IN C

Description: You are to read a file of numbers. You will break apart each number into an array (a set). Compare each array of numbers (set) to tell me if one is the subset of another. Requirements: No more than 10 sets will be in the file No more than 5 numbers in a set There are no O's in the number sets, so you can use that as a delimiter if you wish. You must read in the file: /public/lab2/sets.txt You must read in the numbers as long integers because one of the numbers is larger than an integer. You must break them up into single digits and put each integer into an array for that set. (HINT: use what you did in lab 1) Must check that you can open the input file. If not, print error (using perror) and return or exit program with a 1. DO NOT USE GLOBALS. Must have at least 2 functions besides main. Description: You are to read a file of numbers. You will break apart each number into an array (a set). Compare each array of numbers (set) to tell me if one is the subset of another. Requirements: No more than 10 sets will be in the file No more than 5 numbers in a set There are no O's in the number sets, so you can use that as a delimiter if you wish. You must read in the file: /public/lab2/sets.txt You must read in the numbers as long integers because one of the numbers is larger than an integer. You must break them up into single digits and put each integer into an array for that set. (HINT: use what you did in lab 1) Must check that you can open the input file. If not, print error (using perror) and return or exit program with a 1. DO NOT USE GLOBALS. Must have at least 2 functions besides main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
