In-Class Practice

Parallel Arrays


Design and code a program named cable.c that

  • prompts the user for a TV station number
  • displays the corresponding cable channel

The TV-station cable-channel cross-reference list is

TVCable
217
320
416
506
603
718
908
1111
1761
2512
2928
3604
 // Cable Channel
 // cable.c

 #include <stdio.h>

 int findIndex(                                          ); 

 int main(void)
 {
















 }

 // findIndex returns the index of the element that matches the
 // value received.
 //
 int findIndex(                                                 )
 { 





















 }



   Printer Friendly Version of this Page print this page     Top  Go Back to the Top of this Page



  Designed by Chris Szalwinski   Copying From This Site   

Creative Commons License