Structure Diagrams??

This is a discussion on Structure Diagrams?? within the C Programming forums, part of the General Programming Boards category; Never used structure diagrams before but now I need to for an assignment - anybody any tips? For example - ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1

    Structure Diagrams??

    Never used structure diagrams before but now I need to for an assignment - anybody any tips? For example - how much detail do you include? If you are incrementing a variable how specific do you need to be on the chart?

    Here's the problem - all suggestions welcome:

    The program is to cope with input of an unspecified number of exam marks (the number to be input and validated at run time)

    Marks must be in range 0 - 99 and they must be validated on input. When all have been input the following stats must be output:

    Number of students marks entered

    The mean mark of all students

    The range of marks

    The number of students achieving each grade:

    fail <39
    pass 40-64
    merit 65-74
    distinction 75+

    In addition the marks should be recorded against the grouped range into which they fall and the mode group output.

    I can code it but the diagram?? help appreciated

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    > how much detail do you include?
    Hard to say - here are some ideas

    What are the local standards - given this is an assignment, ask the marker. An example from an un-related project (design and code) would be helpful.

    How inherently complex is the task - the more complex the task, the more detail you would want to add.

    Who's doing the implementation after the design - if it's someone else, you would want to add more detail.

    What is the life of the program - will it require maintenance? - If so, then more detail might be better.

    > If you are incrementing a variable how specific do you need to be on the chart?
    I would say that one box/circle/whatever on the chart should equate to at most 5 lines of code (you estimate).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem referencing structure elements by pointer
    By trillianjedi in forum C Programming
    Replies: 19
    Last Post: 06-13-2008, 05:46 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. design structure diagrams
    By ADR14N in forum C++ Programming
    Replies: 1
    Last Post: 05-17-2004, 06:41 AM
  4. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 09:52 AM
  5. C structure within structure problem, need help
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 11-30-2001, 04:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21