Difference: CSS121S2023Lab4H1 (1 vs. 2)

Revision 22023-01-31 - cathybareiss

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

Design for lab 4

main required components

Line: 7 to 7
  open the file initialize the main loop (set counters to 0) loop done at the end of the file
Deleted:
<
<
get color from file get valid color from user (might need a loop ensure it is valid)
  initialize counter for number correct in row for loop for number of items in a row
Added:
>
>
get color from file get valid color from user (might need a loop ensure it is valid)
  if correct display message count it

Revision 12023-01-10 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121S2023Lab04"

Design for lab 4

main required components
    constants
    declarations
    open the file
    initialize the main loop (set counters to 0)
    loop done at the end of the file
        get color from file
        get valid color from user (might need a loop ensure it is valid)
        initialize counter for number correct in row
        for loop for number of items in a row
            if correct
                display message
                count it
            else
                display message
        if all correct in the row
           display message
    display total number correct
    display total number of rows correct
 
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