Thread: C programming - parabola. HELP!!!!

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    1

    Question C programming - parabola. HELP!!!!

    This is an exercise that i cannot figure out for the life of me... someone who is more competent than me in C programming please help!!!

    What to do:
    The equation of the parabola is
    y = ax2 + bx + c
    Write a complete C program capable of finding the maximum or
    minimum of a parabola. As input, the program is to ask the user
    data consisting of the values of a, b and c for the parabola.
    Find the minimum value (or maximum depending on the parabola)
    of y for all values of x between -20.0 and +20.0 in increments
    of 0.01.
    Your program must produce a nicely aligned report. Display the
    minimum/maximum value of y and the value of x at that point.
    Display your name(s) at the bottom of the report.
    Your code must have good style including comments and proper
    indentation.
    All numerical values on the report must come from variables,
    not constants.
    equation max/min of y value of x
    ------------------- -------------- ----------
    y = 1.1x*x – 2x + 1 0.09 (min) 0.91
    ------------------- --------------- ----------

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Read this - http://cboard.cprogramming.com/annou...t.php?f=4&a=39
    Then show us what you've managed to achieve so far, and a specific question about what you're confused about.

    This isn't a "dump your assignment and expect a free answer on a plate" forum.
    http://catb.org/~esr/faqs/smart-questions.html#homework
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windsurfer Parabolic misunderstanding
    By cerin in forum Tech Board
    Replies: 7
    Last Post: 08-23-2009, 01:00 PM
  2. urgent assignment(due tonight) help
    By avivak in forum C Programming
    Replies: 5
    Last Post: 10-29-2007, 04:50 PM
  3. graphing a parabola
    By boa_321 in forum C++ Programming
    Replies: 3
    Last Post: 02-07-2003, 01:29 AM