Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise: Counting Arkles (pair) This is a pair exercise to complete with your lab partner. Complete the function count_arkles in farnarkle.c. int count-arkles (int tile
Exercise: Counting Arkles (pair) This is a pair exercise to complete with your lab partner. Complete the function count_arkles in farnarkle.c. int count-arkles (int tile sIN-ILLES], nt tiles2N-IILES1) { / PUT YOUR CODE HERE /NOTE DO NOT CHANGE tiles1 or tiles return count arkles should given two tile sequences, return the number of arkles Note: it doesn't matter which sequence is the hidden sequence and which is the guess. farnarkle.c contains a main function which will let you test count_arkles For example: s dcc farnarkle.c -o farnarkle ? ./farnarkle Enter 0 to call count farnarkles () Enter 1 to call count arkles () Enter 2 to call play_farnarkle () Enter 3 to call test ai farnarkle player () Call which function: 1 Enter tile sequence 1: 12 34 Enter ti count arkles returned 2 for Sequence 1: 1 23 4 Sequence 2: 2 1 3 2 ? ./farnarkle Enter0 to cal1 count farnarkles( Enter 1 to cal1 count arkles Enter 2 to call play farnarkle () Enter 3 to call test al farnarkle player() Call which function : 1 Enter tile sequence 1: 58 55 Enter tile sequence 2: 8588 count arkles returned 2 for Sequence 1: 5 85 5 Sequence 2: 8 58 8 le sequence 2: 2132 When you think your program is working you can use autotest to run some simple automated tests: ? 1511 autotest count arkles When you are finished on this exercise you and your lab partner must both submit your work by running give s give cs1511 wk05_count_arkles farnarkle.c Exercise: Counting Arkles (pair) This is a pair exercise to complete with your lab partner. Complete the function count_arkles in farnarkle.c. int count-arkles (int tile sIN-ILLES], nt tiles2N-IILES1) { / PUT YOUR CODE HERE /NOTE DO NOT CHANGE tiles1 or tiles return count arkles should given two tile sequences, return the number of arkles Note: it doesn't matter which sequence is the hidden sequence and which is the guess. farnarkle.c contains a main function which will let you test count_arkles For example: s dcc farnarkle.c -o farnarkle ? ./farnarkle Enter 0 to call count farnarkles () Enter 1 to call count arkles () Enter 2 to call play_farnarkle () Enter 3 to call test ai farnarkle player () Call which function: 1 Enter tile sequence 1: 12 34 Enter ti count arkles returned 2 for Sequence 1: 1 23 4 Sequence 2: 2 1 3 2 ? ./farnarkle Enter0 to cal1 count farnarkles( Enter 1 to cal1 count arkles Enter 2 to call play farnarkle () Enter 3 to call test al farnarkle player() Call which function : 1 Enter tile sequence 1: 58 55 Enter tile sequence 2: 8588 count arkles returned 2 for Sequence 1: 5 85 5 Sequence 2: 8 58 8 le sequence 2: 2132 When you think your program is working you can use autotest to run some simple automated tests: ? 1511 autotest count arkles When you are finished on this exercise you and your lab partner must both submit your work by running give s give cs1511 wk05_count_arkles farnarkle.c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started