Difference: CSC121S2023Lab04 (2 vs. 3)

Revision 32023-01-19 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC121SylS2023"

Repetition, files, and Colors

Learning Objective(s)

Line: 8 to 8
 

Overview of the Program

The program is to allow the user to guess colors in a file. The file contains numbers representing colors with 4 per row. The program is to allow the user to guess each color and output the number correct.

Details

Changed:
<
<
  1. Your colors are to be read, blue, green, and yellow.
>
>
  1. Your colors are to be red, blue, green, and yellow.
 
  1. You must use constants for the colors and the number of colors per line in the file.
  2. Reject any invalid numbers (out of range)
  3. Use a for loop to the colors in one row
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback