From 97a693d996c79fb2a008b19750d8bb45512e01a2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 6 Feb 2017 11:26:44 -0500 Subject: Inital commit --- accel.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 accel.c (limited to 'accel.c') diff --git a/accel.c b/accel.c new file mode 100644 index 0000000..6b61c69 --- /dev/null +++ b/accel.c @@ -0,0 +1,14 @@ +/* Find the acceleration */ + +#include + +int main() +{ + static float FORCE_OF_GRAVITY = 9.81; + int pullforce = 20; + float coeffOfFriction = 0.2; + float weight = 5.0; + /*calculate and display acceleration */ + printf("Acceleration a = %f(m/s^2)\n",(pullforce-coeffOfFriction*weight*FORCE_OF_GRAVITY)/weight); + return 0; +} -- cgit v1.2.3-70-g09d2