AHHHHHH how I complete this assignment????????
QUOTE
Studebaker the robot (Stuy's FIRST entry from 1957) has a velocimeter
but no computer. Instead, it prints out the velocity values every 5
seconds (adjustable by a dial) on a sheet of paper and leaves it
behind for the drivers to read and manipulate by slide rule. We want
to demo Studebaker at the Class of '57 reunion, but it's 2006 and no
one knows how to use slide rules any more! Write this program so that
we can bring Studebaker out of the closet and impress the fictional
people who built him.
The program should read in a time interval (seconds) as a floating
point number, an integer indicating the number of values to follow
(less than 256), and then a list of velocities (ft/s) as floating
point numbers. It should then print:
a) The total displacement
b) The total distance traveled
c) The average velocity
d) The average speed
Assume that Studebaker is starting from rest, and that he travels at
each velocity for all of the given time period.
Sample input:
4.2
5
3.0
2.0
1.3
-2.1
-4.0
Sample output:
.8
52.0
.03809
2.47619
Remember that you can read input using scanf.
How I do this with C????
Why doesn't this compile:
QUOTE
#include < stdio.h>
void main()
{
printf("\nHello World\n");
}
[
HELP HELP ME!!!, MY ASSIGNMENT IS DUE TOMORROW!!!