Design

Cards (13)

  • Parallel 1D arrays

    Arrays that store data of the same data type
  • Records
    Can hold related data of different types
  • Arrays of records
    An array that stores records
  • Parallel 1D arrays
    • Names array stores player names
    • Scores array stores player scores
  • Player record
    Can hold name and score data
  • Array of player records
    • Can store names and scores of multiple players
  • Structure diagram
    Graphically shows the steps needed to solve a problem
  • Top level design
    Shows the major steps of a program solution
  • Top level design for program to read names/IQs, calculate average IQ, find highest IQ

    • Read names/IQs from file
    • Calculate average IQ
    • Find/display name of person with highest IQ
  • Data flow
    Shows the information that will flow in and out of sub-programs
  • Data flow for program to read names/IQs, calculate average IQ, find highest IQ

    • Arrows show data flow in/out of each sub-program
  • Design refinements
    Break down each main step into smaller steps
  • Refinements for program to read names/IQs, calculate average IQ, find highest IQ

    • Detailed steps for each main program component