Difference: CSC121S2023Lab04 (5 vs. 6)

Revision 62023-01-30 - cathybareiss

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

Repetition, files, and Colors

Learning Objective(s)

Line: 6 to 6
 
  1. Learn to use for statement
  2. Learn to read from a file

Overview of the Program

Changed:
<
<
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.
>
>
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. It is to also indicate if an entire row is correct.
 

Details

  1. Your colors are to be red, blue, green, and yellow.
  2. You must use constants for the colors and the number of colors per line in the file.
 
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