Question: Question 2 (10 marks) You are involved in the development of an aircraft engine, the propfan or open rotor engine (see https:en.wikipedia or wiki Propfan

 Question 2 (10 marks) You are involved in the development of

Question 2 (10 marks) You are involved in the development of an aircraft engine, the propfan or open rotor engine (see https:en.wikipedia or 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.00001-0.00488t0.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. T'est your program with the following test cases Timet Speed v 0.00 2.00 ILS 181.35660 182.85306 10.00188.45810 50.00 208.30410 100.00218.35160 120.00219.31860 Guidclines: If you can, please use Code Blocks Logic Stralegies . In the main function o Consider using the following local variables. v: for the speed of the planc . t: for the time t - o Prompt the user for the time r. Use short and appropriate prompt messages Read the values fronm the keyboard and assign them respectively to the variable t o Call a fctin, say aalculateSpeed, 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 o . For the fiunction aalculateSpeed o Consider using the following parameters t for the value of ie o Consider using the following local variables " speed: for storing the speed of the plane at ie t (note that ths variable will contain the value retned) The finction caleulates speed of the plane (see the equation given at the beginning of the question), stores it in the variable speed and retuis the value stored in speed. Test the program using the values provided in the table above. In your assignment file, give the output of your program for all test cases. The answer to this question should provide 1) 2) The source code to your program (also insert the source code into the assignment file). The output showing the results of all the test cases; insert the output into the assignment file. The following is an example of the output for the first test case D:lUofo CoursesCurrentCourses GNG11061Fall2018)AssignmentsVA11....- lease give the time t (s) after the plane's acceleration : .e t time . 000000, the speed of the plane is 181.356600 m/s rocess returned 59 (0x3B execution time 2.747 s Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!