Thread: Program Design question....

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Lightbulb Program Design question....

    Give one example of a data value that can be stored in a variable which has been declared with each of the following data types:
    a.)Boolean type
    b.)String type
    c.)Integer type
    d.)Real type

    -i cant seem to comprehend the question given...

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Seroiusly? You don't know what data types are?
    Pull out your C textbook (or any decent online tutorial) and start reading.

    a) 1
    b) C does not have a string type
    c) 1
    d) 1

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    3
    i dont get it

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by jughead View Post
    i dont get it
    Like I said... grab your C textbook and start reading...

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Program Design Exam Challenge!

    found an old exercises about program designing and the answer key is GONE unfortunately..
    just for fun, test your knowledge...
    ready..
    1.)For each of the following, state which kind of program development aid is involved:
    a.)Extracting and printing data from files.
    b.)Providing large volumes of data with which to allow programs to be tested exhaustively.
    c.)Monitoring the execution of a program, allowing the programmer to interrupt execution in order to track down or fix bugs
    d.)Designing screen layouts, which are then processed and turned into appropriate program code.
    e.)Making use of prototyping to reduce development time and programming effort.

    2.)Explain with an example what is meant by "stepwise refinement"
    3.) Explain what is meant by "structured programming"



    4.)Briefly explain white box testing.
    5.)Explain and give an example of each, for the two types of errors which can be found in testing and debugging a program.


    more to come...

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    http://cboard.cprogramming.com/progr...use-forum.html

    See the last point.

    This is interesting too.

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by jughead View Post
    i dont get it
    What is it you don't get? What a type is? What a variable is? What a value is?

    Also, C really does not have a string type. Are you sure this is not a question about C++?
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  8. #8
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by MK27 View Post
    What is it you don't get? What a type is? What a variable is? What a value is?
    Don't bother .

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Threads merged and moved (FWIW).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    So Mr I Don't Getit turns out to be a troll....
    Quelle Surprise.

  11. #11
    Registered User
    Join Date
    Jun 2010
    Posts
    53
    yes but CommonTater... why would people do such a stupidity! I mean what's in it for them ????

    That's what I don't get ....

    rob

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question - GUIs and Actual Program Design
    By Enoctis in forum C++ Programming
    Replies: 10
    Last Post: 10-03-2005, 08:51 PM
  2. program design question
    By Chaplin27 in forum C++ Programming
    Replies: 1
    Last Post: 06-23-2005, 07:18 PM
  3. program design question
    By Chaplin27 in forum C++ Programming
    Replies: 0
    Last Post: 06-23-2005, 06:58 PM
  4. program design question
    By theroguechemist in forum C++ Programming
    Replies: 4
    Last Post: 03-02-2004, 08:45 PM
  5. Help with design of program
    By beyondsociety in forum C Programming
    Replies: 12
    Last Post: 08-07-2003, 01:34 PM

Tags for this Thread