Question

please write Microsoft Excel VBA code for a spring-mass system where the user inputs mass initial position/velocity, spring constant, spring neutral position, number of mass/spring combo. The VBA code...

please write Microsoft Excel VBA code for a spring-mass system where the user inputs mass initial position/velocity, spring constant, spring neutral position, number of mass/spring combo. The VBA code calculates max energy, max compression and max velocity, position and velocity for user input time. Again please use Excel VBA

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

Ans ud:-Giuen data eemasK f the caltl Contains a constant thic props tt netusns the constonl the catl change duairg a necalau

Add a comment
Know the answer?
Add Answer to:
please write Microsoft Excel VBA code for a spring-mass system where the user inputs mass initial position/velocity, spring constant, spring neutral position, number of mass/spring combo. The VBA code...
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
  • can someone please help me out with this? i have to write this in vba excel....

    can someone please help me out with this? i have to write this in vba excel. Question 2: (40 Pointsy) The total cnerey, E. ofa movins hint i comual to energy, E, of a moving object is equal to the sum of its kinetic and potential energieS: where m is the mass (in kg) v is the velocity (in m/s) h is the height of the object (in m) g is the acceleration due to gravity (9.81 m/s') 5 m/s...

  • (a) Find the period of oscillation for a spring-mass system where the spring constant (k) is...

    (a) Find the period of oscillation for a spring-mass system where the spring constant (k) is 24 N/m and the mass (m) is 6 kg. (b) Write an equation for x(t) if the spring is stretched to an amplitude of 10 cm from its equilibrium position x = 0 at t = 0. (c) Write an equation for the following initial conditions: at t = 0, the mass is at x = 0 and has a velocity of +3 cm/s.

  • How would I write code in Java, where the user inputs a binary number and the...

    How would I write code in Java, where the user inputs a binary number and the system reads the input and outputs if there was an even or odd number of 1s typed. For example, if I typed 10101 it should output as odd. and if I typed 11011 it should output as even.

  • Please Hand write the answer and show which equations are used. Thanks! A mass-spring system (m...

    Please Hand write the answer and show which equations are used. Thanks! A mass-spring system (m = .50 kg, k = 1200 N/m) is given an initial compression of .05m. The system then oscillates horizontally on a frictionless surface. Calculate the following: (a) the initial potential energy of the system (b) the maximum kinetic energy of the system (the KE varies with time, but what is the maximum it can be?) (C) the maximum velocity? (d) the angular frequency, w,...

  • Problem 2. Recall that any undamped spring-mass system is described by an initial value problem of...

    Problem 2. Recall that any undamped spring-mass system is described by an initial value problem of the form m" + ky= 0, (0) = 0, v(0) = to, where m is the mass and k is the spring constant. Since there is no damping, we would expect that no energy is lost as the mass moves. That is, the total energy (potential plus kinetic) in the system at any time I should equal the initial amount of energy in the...

  • i want the code and the answer to last image question#4 please By the way, we...

    i want the code and the answer to last image question#4 please By the way, we need to print values for velocity, acclaration, mass, all of the values This program will prompt the user for the following input The distance an object traveled from point 1 to point 2 (variable distance) The time required to travel distance (variable time) The object's initial velocity (variable initVelocity) . The mass of the object (variable mass) You will need to write a series...

  • A second order mechanical system of a mass connected to a spring and a damper is subjected to a s...

    A second order mechanical system of a mass connected to a spring and a damper is subjected to a sinusoidal input force mx+cx + kx = A sin(at) The mass is m-5 kg, the damping constant is c = 1 N-sec/m, the spring stiffness is 2 N/m, and the amplitude of the input force is A- 3 N. For this system give explicit numerical values for the damping factor 5 and the un-damped natural frequency Using the given formulas for...

  • Question 2 A simple harmonic oscillator is made up of a mass-spring system, with mass of 2.39 kg and a spring constant k = 140 N/m. At time t=1.66 s, the position and velocity of the block are x = 0.1...

    Question 2 A simple harmonic oscillator is made up of a mass-spring system, with mass of 2.39 kg and a spring constant k = 140 N/m. At time t=1.66 s, the position and velocity of the block are x = 0.113 m and v = 3.692 m/s. What is the velocity of the oscillation at t=0? Be sure to include the minus sign for negative velocity. Your answer should be in m/s, but enter only the numerical part in the...

  • I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is de...

    I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is described by the following ordinary differ- ential equation: dx dx in dt2 dt where x displacement from equilibrium position (m), t time (s), m 20-kg mass, and c the damping coefficient (N s/m). The damping coefficient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (over- damped). The spring constant k-20 N/m. The initial ve- locity is...

  • An object of mass m is connected to a light spring with a force constant of...

    An object of mass m is connected to a light spring with a force constant of kH N/meter which oscillates on a frictionless horizontal surface with Simple Harmonic Motion. At t = 0 the spring was at rest but is compressed x = A meter maximum during oscillation. Write the equation of motion from Newton's 2nd law FH = m·a and Hook's Law FH = -kH·x. Because of the starting position assume a solution is x = A sin(ωt) a...

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
ADVERTISEMENT