Thread: Programs for Uni? Any help please

  1. #1
    Registered User
    Join Date
    Apr 2004

    Question Programs for Uni? Any help please

    Hey all, im on an Aviation course at uni in England, but for some reason i have to do some computer-related (programming) modules. The problem is ive been given 2 C programs to create, all i need is the lines of code but i really dont know how to do it at all. The 2 progs ive gotta do are:

    Course work 1.

    The following data was collected in an experiment to measure temperature in a chemical reactor (in C): 57, 65, 72, 80, 73, 82, 55, 45, 59, 70. Write a C program to calculate the deviation of the temperature from its average value for each of the measurements and to print the numbers of the measurements with deviations bigger than 10C.

    Course work 2.

    Write a C program to print a list of points (X,Y) on the graph of the equation Y = X3 3X + 1 for X ranging from 2 to 2 in steps of 0.1 and to determine the maximal value of Y.

    All i need is the code to each program but like i said, i dont know where to start! all i know is that its only about 15-20 lines or something!

    Thanks to anyone who can help me out, ill buy u a pint or 2!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    So what have you done so far - apart from actually posting your assignment here.

    The first step in such programs is to simply read data in from the user and print it back out again (without any calculations). That at least proves
    - you've done some work
    - that your input conversion actually works.

    Do we for instance assume that you know what a standard deviation is, or do we need to tell you that as well?
    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. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  3. Problem using java programs within C code
    By lemania in forum Linux Programming
    Replies: 1
    Last Post: 05-08-2005, 02:02 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM