Question: write a program in C For the mechanical system given mass 6kg and coefficient of kinetic friction 0.3, the applied force p is expressed as

write a program in C For the mechanical system given mass 6kg and coefficient of kinetic friction 0.3, the applied force p is expressed as a function of time t(in seconds)by

p(t) = {20 if t>=0 and t <= 3.0

p(t) = {4(t+2) if t> 3.0 and t<= 6.0

p(t) ={4(t^2 + 2t) if t>6.0

write a program in C that Calculates the force dependent on the time

as time increases from 0 to 10 seconds inincrements of 0.5 seconds.

1)Use a for loop.

2)Format the output to print the values to 1 decimal place.

The expected output:

Time Force

0.0 20.0

0.5 20.0

1.0 20.0

1.5 20.0

2.0 20.0

2.5 20.0

3.0 20.0

3.5 22.0

4.0 24.0

4.5 26.0

5.0 28.0

5.5 30.0

6.0 32.0

6.5 221.0

7.0 252.0

7.5 285.0

8.0 320.0

8.5 357.0

9.0 396.0

9.5 437.0

10.0 480.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!