Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise: Counting Farnarkles (pair) This is a pair exercise to complete with your lab partnen Complete the function count farnarkles in farnarkle.c int count farnarkles

image text in transcribed

Exercise: Counting Farnarkles (pair) This is a pair exercise to complete with your lab partnen Complete the function count farnarkles in farnarkle.c int count farnarkles (int tiles!TN TILES?, int tiles2N TILES1) { / PUT YOUR CODE HERE NOTE DO NOT CHANGE tiles1 or tiles2 return 0 count farnarkles should given two tile sequences, return the number of farnarkles Note: it doesn't matter which sequence is the hidden sequence and which is the guess farnarkle.c contalns a maln function which wll let you test count farnarkles For example ? 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 cal1 test_ai_farnarkle_player() Call which funct.ion: 0 Enter tile sequence1: 12 3 4 Enter tile sequence 2: 21 3 8 count farnarkles returned 1 for Sequence 1: 1 23 4 Sequence 2: 2 13 ? ./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: 0 Enter tile sequence 1: 5565 Enter tile sequence 2:6555 count farnarkles returned 2 for Sequence: 5 5 Sequence 2: 6 5 5 5 6 5 When you think your program is working you can use autotest to run some simple automated tests: ? 1511 autotest count_farnarkles When you are finished on this exercise you and your lab partner must both submit your work by running give: ? give cs1511 wk05_count_farnarkles farnarkle.c

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions