You are involved in the development of an aircraft engine, the propfan or open rotor engine (see
Question:
You are involved in the development of an aircraft engine, the propfan or open rotor engine (see https://en.wikipedia.org/wiki/Propfan ). A plane with mass 20 000 kg reaches a speed of 180 m/s where the engine applies a force of 40 000 newtons. When the pilot increases the engine’s power to 60 000 newtons and the plane accelerates, the following equation gives the change in speed after the increase in power (a new speed is reached after about 120 s).
v=0.0000t^3-0.00488t^2+0.75795t+181.3566
where v is the plane’s speed in m/s and t is the time in seconds ( t = 0 when the engine’s power is increased to 60 000 newtons).
Develop a program that computes the speed of the plane at a given time t . The user will provide the value of the time. Note that in C, multiplication operator is written as “*”.
Test your program with the following test cases:
Time t (s) | Speed v (m/s) |
0.00 | 181.35660 |
2.00 | 182.85306 |
10.00 | 188.45810 |
50.00 | 208.30410 |
100.00 | 218.35160 |
120.00 | 219.31860 |
Guidelines:
Logic/Strategies
In the main functionConsider using the following local variables.
v : for the speed of the plane,
t : for the time t ,
Prompt the user for the time t . Use short and appropriate prompt messages. Read the values from the keyboard and assign them respectively to the variable t.
Call a function, say calculateSpeed , to calculate the speed of the plane. Store the result returned by the function in the variable v . You will need to define this function in your program.
Display the results with a message of the following form:
At time 0.0, the speed of the plane is 181.3566 m/s
For the function calculateSpeed Consider using the following parameters
t : for the value of time,
Consider using the following local variables
speed : for storing the speed of the plane at time t (note that this variable will contain the value returned).
The function calculates speed of the plane (see the equation given at the beginning of the question), stores it in the variable speed and returns the value stored in speed .
Advertising & Promotion An Integrated Marketing Communications Perspective
ISBN: 978-0070891302
5th Canadian Edition
Authors: Gerorge E.Belch, Micheal A.Belch, Micheal A.Guolla