Array, deal cards

This assignment tests your ability to write programs using arrays.

Begin by studying our notes on arrays:

  1. Array terminology
  2. Arrays using constants for subscripts
  3. Arrays using variables for subscripts
Then write a program for dealing cards. Your program should use an array for the names of the suits and the cards. It should also verify input so the user does not accidently enter an illegal subscript.

When the program is debugged, turn in a listing and screen shot of execution showing the ace of spades.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.