The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I'm struggling with the loop function in this assignment. Can anybody write this C program without using #include<string.h>
Â
1ENGR 200FALL 2016P6: ROCKET MOTOR THRUST AND IMPULSE(using input/output data files, user-defined functions, loops, and if statements)DUE:October 20, 2016 at 11:59 p.m. CT (extra credit)October 25, 2016 at 11:59 p.m. CT (final deadline)POINTS: 60INTRODUCTION:Rocket motors are tested by restraining them on the ground, firing them with a known amount of propellant, andmeasuring the thrust over time. A typical curve is shown below.The total impulse is the integral of the thrust over the operating duration of the motor. This can be approximatedbyIt= Δt(F1+F2+F3+…)where: It= total impulse in lb-secΔt = time increment in secondsF1, F2, F3, … = thrust at timesteps 1, 2, 3, … in lbThe specific impulse is the total impulse divided by the weight of the propellant burned in the test.Isp= It/mwhere: Isp= specific impulse in secondsm = mass of propellant burned in poundsThe average thrust is found by dividing the total impulse by the thrust time.Favg= It/twhere: Favg= average thrust in lbt = total test time in secondsAn input data file calledtime-thrustcontains time, increment, and thrust data for a rocket test where themassof propellant burned was 1.54 lb. The first record line of the input file is the control number which defines thenumber of data points to be read into the program. Each succeeding record line has three columns. The first
220.0,0.0,0.00.1,0.1,50.00.2,0.1,100.00.3,0.1,140.00.4,0.1,150.00.5,0.1,155.00.6,0.1,155.00.7,0.1,154.00.8,0.1,150.00.9,0.1,149.01.0,0.1,148.01.1,0.1,140.01.2,0.1,138.01.3,0.1,132.01.4,0.1,120.01.5,0.1,100.01.6,0.1,80.01.7,0.1,50.01.8,0.1,30.01.9,0.1,20.02.0,0.1,10.02.1,0.1,0.0
Attachments:
-----------