diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-02-06 11:26:44 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-02-06 11:26:44 -0500 |
| commit | 97a693d996c79fb2a008b19750d8bb45512e01a2 (patch) | |
| tree | 6df17bfe7de7c59f7b1083828d71a91e61fae9fa /problem1.c | |
| download | engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.tar.gz engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.tar.bz2 engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.zip | |
Diffstat (limited to 'problem1.c')
| -rw-r--r-- | problem1.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdio.h> + +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; +} |
