From 97a693d996c79fb2a008b19750d8bb45512e01a2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 6 Feb 2017 11:26:44 -0500 Subject: Inital commit --- problem1.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 problem1.c (limited to 'problem1.c') diff --git a/problem1.c b/problem1.c new file mode 100644 index 0000000..1f85ff0 --- /dev/null +++ b/problem1.c @@ -0,0 +1,14 @@ +/* Find the acceleration */ + +#include + +int main() +{ + static float FORCE_OF_GRAVITY = 9.81; + int pullforce = 10; + float coeffOfFriction = 0.3; + float weight = 6.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