Question

In C,

1. For the mechanical system shown in the figure below, 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 20 if t 2 0.0 and t s 3.0 p(t)-4(t 2) if t > 3.0 and t s 6.0 4(t2 + 2t) if t > 6.0 Normal Force Motion Applied Force Force of Friction Force of Gravity Calculate the force dependent on the time as time increases from 0 to 10 seconds in increments of 0.5 econa 1) Use a for loop 2) Format the output to print the values to 1 decimal place The expected output Time 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 Force 20.0 20.0 20.0 20.0 20.0 20.0 20.0 22.0 24.0 26.0

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi, I read your problem and this seems very easy. You have to just apply the if-else statement for different conditions. I have provided the code and output for the same. Hope it helps you. If any doubts you have, I can help you through comments. If you are satisfied by my answer, please flag up the answer. Thank you.

1 #include<stdio.h> 2 3- int main) float t; //this variable is for time; this will increments with 0.5 float force; //this vaTime 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 8.5 9.0 9.5 10.0 Force 20.0 20.0 20.0 20.0 20.0 20.0

Add a comment
Know the answer?
Add Answer to:
In C, 1. For the mechanical system shown in the figure below, given mass 6kg and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • USE EXCEL TO CALCULATE THE FREQUENCIES AS SHOWN BELOW. PLEASE PROVIDE EXCEL FORMULA USED. Frequency Distribution...

    USE EXCEL TO CALCULATE THE FREQUENCIES AS SHOWN BELOW. PLEASE PROVIDE EXCEL FORMULA USED. Frequency Distribution Low High Bins Frequency -67.0 -56.6 (-67, -56.6] -56.6 -46.2 (-56.6, -46.2] -46.2 -35.8 (-46.2, -35.8] -35.8 -25.4 (-35.8, -25.4] -25.4 -15.0 (-25.4, -15] -15.0 -4.6 (-15, -4.6] -4.6 5.8 (-4.6, 5.8] 5.8 16.2 (5.8, 16.2] 16.2 26.6 (16.2, 26.6] 26.6 37.0 (26.6, 37] 37.0 47.4 (37, 47.4] 47.4 57.8 (47.4, 57.8] 57.8 68.2 (57.8, 68.2] 68.2 78.6 (68.2, 78.6] 78.6 89.0 (78.6, 89]...

  • SnowGeese File: Trial   Diet   WtChange   DigEff   ADFiber 1   Plants   -6.0   0.0   28.5 2   Plants   -5.0   2.5  ...

    SnowGeese File: Trial   Diet   WtChange   DigEff   ADFiber 1   Plants   -6.0   0.0   28.5 2   Plants   -5.0   2.5   27.5 3   Plants   -4.5   5.0   27.5 4   Plants   0.0   0.0   32.5 5   Plants   2.0   0.0   32.0 6   Plants   3.5   1.0   30.0 7   Plants   -2.0   2.5   34.0 8   Plants   -2.5   10.0   36.5 9   Plants   -3.5   20.0   28.5 10   Plants   -2.5   12.5   29.0 11   Plants   -3.0   28.0   28.0 12   Plants   -8.5   30.0   28.0 13   Plants   -3.5   18.0   30.0 14   Plants   -3.0   15.0   31.0 15   Plants   -2.5  ...

  • Small differences in annual growth rates cumulate into large differences in GDP. Shown here are the...

    Small differences in annual growth rates cumulate into large differences in GDP. Shown here are the number of years it would take to double GDP at various growth rates. Doubling times can be approximated by the rule of 72. Seventy-two divided by the growth rate equals the number of years it takes to double. Growth Rate Doubling Time (Percent) (Years) 0.0 Never 0.5 144.0 1.0 72.0 48.0 1.5 2.0 36.0 28.8 2.5 3.0 3.5 24.0 20.6 18.0 4.0 4.5 16.0...

  • Table 6.3. Data Used to construct Figure 6.10 and 6.11. Hour Absorbance Cfu/ml 0.16 x 10 0.16 x 1...

    bacterial growth curve help whats wrong with each graph using the chart provided. Table 6.3. Data Used to construct Figure 6.10 and 6.11. Hour Absorbance Cfu/ml 0.16 x 10 0.16 x 10 0.16 x 10 0.16 x 10 0.78 x 10 1.98 x 10 2.53 x 10% 3.13 x 10% 4.38 x 10 5.97× 106 9.41 x 10 11.9 x 10 14.7 x 10 21.0× 106 22.0× 106 22.2 x 10% 0.01 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0...

  • 1: The plot shown below represents the step response of a second-order LTI system (with input...

    1: The plot shown below represents the step response of a second-order LTI system (with input (t) and output y(t)) with zero initial conditions. From the step response: (a) Estimate the peak time tp, and the maximum percentage overshoot %Mp. (b) Estimate the natural frequency wn and the damping ratio c. (c) Derive a differential equation corresponding to this system using the results of parts (a) and (b). Step Response X: 085 Y: 1.261 Amplitude 0 0.5 1 1.5 2...

  • Consider the following mass distribution where the x- and y-coordinates are given in meters: 5.0 kg...

    Consider the following mass distribution where the x- and y-coordinates are given in meters: 5.0 kg at (0.0, 0.0) m, 3.3 kg at (0.0, 3.5) m, and 4.0 kg at (2.9, 0.0) m. Where should a fourth object of 7.5 kg be placed so that the center of gravity of the four-object arrangement will be at (0.0, 0.0) m? A 1.25 kg solid, uniform disk rolls without slipping across a level surface, translating at 4.00 m/s. If the disk's radius...

  • 4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel...

    4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel with a viscous damper with coefficient, h (Nós/m) and an externally applied force, Fexi(t) (N). u(t) a. Find the equation that relates the applied force, Fext(t) and the displacement, u(t). b. If the spring component has a stiffness of k = 75 N/m, the damper component has coefficient h = 50 N s/m and the externally applied force is a constant 4.5 N applied...

  • The rigid body shown below rotates around a fixed axis at O and position angle 0=...

    The rigid body shown below rotates around a fixed axis at O and position angle 0= 0 when the body is in static equilibrium. Force f(t) is applied to the body as shown below. The mass of the body is 12 kg and O is the center of mass. k=1000 N/m_for the spring. Mass moment of inertia I and damping constant c are to be determined. The plot below shows the response 0(t) when f(t) = 60 N is a...

  • a) Insert here a copy of the plot for the heating curve you created in laboratory....

    a) Insert here a copy of the plot for the heating curve you created in laboratory. Remember that an acceptable plot has labels and units on the axes, a legend, and a title. PLOT GRAPH Run 1 Time   Temperature   T   T   min   °C   0.0   22.0   0.2   22.0   0.5   22.1   0.8   21.9   1.0   22.2   1.2   22.1   1.5   22.1   1.8   22.3   2.0   22.0   2.2   21.9   2.5   22.0   2.8   22.2   3.0   22.7   3.2   23.6   3.5   24.7   3.8   26.5   4.0   28.0   4.2   29.6   4.5  ...

  • Consider the electromechanical dynamic system shown in Figure 1(a). It consists of a cart of mass...

    This assignment is for my Engr dynamics systems class. Consider the electromechanical dynamic system shown in Figure 1(a). It consists of a cart of mass m moving without slipping on a linear ground track. The cart is equipped with an armature-controlled DC motor, which is coupled to a rack and pinion mechanism to convert the rotational motion to translation and to create the driving force for the system. Figure 1(b) shows the simplified equivalent electric circuit and the mechanical model...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT