Help me solve this programming question please......

This is a discussion on Help me solve this programming question please...... within the C Programming forums, part of the General Programming Boards category; (Global Warming Facts Quiz) The controversial issue of global warming has been widely publicized by the film An Inconvenient Truth, ...

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    1

    Help me solve this programming question please......

    (Global Warming Facts Quiz) The controversial issue of global warming has been widely publicized by the film An Inconvenient Truth, featuring former Vice President Al Gore. Mr. Gore and a U.N. network of scientists, the Intergovernmental Panel on Climate Change, shared the 2007 Nobel Peace Prize in recognition of “their efforts to build up and disseminate greater knowledge about man-made climate change.” Research both sides of the global warming issue online (you might want to search for phrases like “global warming skeptics”). Create a five-question multiple-choice quiz on global warming, each question having four possible answers (numbered 1–4). Be ob-jective and try to fairly repre sent both sides of the issue. Next, write an application that administers the quiz, calculates the number of correct answers (zero through five) and returns a message to the user. If the user correctly answers five questions, print “Excellent”; if four, print “Very good”; if three or fewer, print “Time to brush up on your knowledge of global warming,” and include a list of some of the websites where you found your facts.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,414
    You presumably have done the first part on creating the quiz question and answers. So, what have you done for the second part that you need help with?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    Cross-posted spam
    Help Me Solve This Programming Question Please...... - Dev Shed

    More like just a bunch of keywords for spam fodder.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Heh, looks like another sighting of a manbearpig.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help me solve dis question..Please
    By imbax in forum C Programming
    Replies: 2
    Last Post: 09-23-2010, 09:25 PM
  2. how to solve this question?
    By zcrself in forum C Programming
    Replies: 9
    Last Post: 03-09-2010, 11:12 PM
  3. C bufferoverflow question. can anyone solve it?
    By asdfgh in forum Linux Programming
    Replies: 2
    Last Post: 11-03-2009, 12:40 PM
  4. Help me solve this programming error please
    By rushhour in forum C++ Programming
    Replies: 20
    Last Post: 01-03-2009, 01:11 PM
  5. a question that i can't solve
    By revolution3396 in forum C Programming
    Replies: 16
    Last Post: 11-19-2008, 05:36 PM

Tags for this Thread


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