Question: a) Write a function (check) to check whether a given value is present is already in a field. If this is the case, the function
a) Write a function (check) to check whether a given value is present is already in a field. If this is the case, the function should have the truth value (true) return, otherwise the value (false). bool checkint feld[], int wert) Lottery numbers are to be stored in a field with 6 field elements. Then another function should be used to check how many of the lottery numbers are match a given ticket. Note. The field size is assumed to be 6 for all 4 parts of the task. a) Write a function (check) to check whether a given value is present is already in a field. If this is the case, the function should have the truth value (true) return, otherwise the value (false). bool checklint feld, int wert)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
