Write a c program that will read the required values

Assignment Help Computer Engineering
Reference no: EM132124535

Rocket motors are tested by restraining them on the ground, firing them with a known amount of propellant, and measuring 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 approximated by

It = ?t(F1+F2+F3+...)

where: It = total impulse in lb-sec
?t = time increment in seconds
F1, F2, F3, ... = thrust at timesteps 1, 2, 3, ... in lb

The specific impulse is the total impulse divided by the weight of the propellant burned in the test.

Isp = It/m

where: Isp = specific impulse in seconds
m = mass of propellant burned in pounds

The average thrust is found by dividing the total impulse by the thrust time.

Favg = It/t

where: Favg = average thrust in lb
t = total test time in seconds

 

An input data file called testdata contains time and thrust data for a rocket test where the mass of propellant burned was 1.74 lb. The first record line of the input file is the control number, which defines the number of data points to be read into the program. Each succeeding record line has two columns. The first column is the elapsed test time in seconds, and the second column is the thrust in pounds. The input file is comma delimited.

ASSIGNMENT:

Write a C program that will read the required values from the input file into two one-dimensional arrays. Using the thrust, time, and increment between timesteps (hint: you can get this from the time array - think about using one specific data value), compute the total thrust, total impulse, specific impulse, and average thrust.

Print the total impulse, specific impulse, and average thrust to the computer screen and to an output file called results.

Reference no: EM132124535

Questions Cloud

How many weighted average shares were dilutive in 2017 : Oil Services Corp. reports the following EPS data in its 2017 annual report (in million except per share data).
What would the value be today if the payments occurred : An investment offers $6,800 per year, with the first payment occurring one year from now. The required return is 7 percent.
What is the average divided growth rate : Highway Express has paid annual dividends of $1.32, $1.33, $1.38, $1.40, and $1.42 over the past five years, respectively.
What is the cost of equity of sweet treats : The dividends have been increasing by 2,2 percent annually and are expected to continue doing the same. What is the cost of equity?
Write a c program that will read the required values : Write a C program that will read the required values from the input file into two one-dimensional arrays.
What is the cost of equity : The market price of the stock is $24.09 and the growth 2.6 percent. What is the cost of equity?
How does it seem they are converting letters to numbers : Eve intercepts the RSA message 365, 0, 4845, 14930, 2608, 2608, 0 sent from Alice to Bob. Alice and Bob are not using the scheme above.
Preparation of annual adjusting entries : A review of the ledger of Oriole Company at December 31, 2017, produces these data pertaining to the preparation of annual adjusting entries.
Which of the following provides confidentiality for eap : If you need a wireless data rate of 100 Mbps, which of the following could you use? (Check all that apply.)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd