Question: 1 EE 1 6 0 Homework 1 1 - Building - up a program... one layer at a time Background: An aircraft reaches a cruising
EE Homework Buildingup a program... one layer at a time
Background:
An aircraft reaches a cruising speed of meters per second and the engine throttles
are set so that the power level is increased. The aircraft then starts to accelerate but the faster
it goes, the more aerodynamic drag it experiences in proportion to the square of the air
speed Eventually, the aircraft reaches a new top speed when the thrust force equals the
aerodynamic drag. The equations used to estimate the velocity and acceleration of the aircraft
from the time that the throttle is reset until the plane reaches its new cruise speed is as follows:
Velocity time time time
Acceleration Velocity
Velocity is in units of Acceleration is in and time is in s
Instructions:
Basic pseudocode & flowchart Write pseudocode to ask the user to enter a time value
in seconds. Compute & display the velocity and acceleration for that given time value.
Assume the user enters in a time value between and seconds. Complete the
flowchart for the above.
Basic source code Write the C code, compile and test it Savesubmit this C code as
hwac
Errorhandling pseudocode & flowchart Display an appropriate error message to the
user if the input time is negative or above seconds. Think about how to modify the
existing pseudocode & flowchart. At what point do you add the if statement? Save this
new pseudocode flowchart.
Errorhandling source code Change your source code, compile and run it to test it
Save and submit this code as hwbc
Planning for even more errorhandling Display an appropriate error message to the
user if a nonnumerical input is entered in C syntax, this would use isdigit You only
need to submit the updated flowchart & pseudocode.
Testdataset when all the above is complete, you can test the source code for hwbc using
the following test dataset. Submit the runoutput so that it can be graded:
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of "abc".
Deliverables:
This homework is due Monday
EE Homework Buildingup a program... one layer at a time
Background:
An aircraft reaches a cruising speed of ms meters per second and the engine throttles
are set so that the power level is increased. The aircraft then starts to accelerate but the faster
it goes, the more aerodynamic drag it experiences in proportion to the square of the air
speed Eventually, the aircraft reaches a new top speed when the thrust force equals the
aerodynamic drag. The equations used to estimate the velocity and acceleration of the aircraft
from the time that the throttle is reset until the plane reaches its new cruise speed is as follows:
Velocity time time time
Acceleration Velocity
Velocity is in units of ms Acceleration is in ms and time is in s
Instructions:
Basic pseudocode & flowchart Write pseudocode to ask the user to enter a time value
in seconds. Compute & display the velocity and acceleration for that given time value.
Assume the user enters in a time value between and seconds. Complete the
flowchart for the above.
Basic source code Write the C code, compile and test it Savesubmit this C code as
hwac
Errorhandling pseudocode & flowchart Display an appropriate error message to the
user if the input time is negative or above seconds. Think about how to modify the
existing pseudocode & flowchart. At what point do you add the if statement? Save this
new pseudocode flowchart.
Errorhandling source code Change your source code, compile and run it to test it
Save and submit this C code as hwbc
Planning for even more errorhandling Display an appropriate error message to the
user if a nonnumerical input is entered in C syntax, this would use isdigit You only
need to submit the updated flowchart & pseudocode.
Testdataset when all the above is complete, you can test the source code for hwbc using
the following test dataset. Submit the runoutput so that it can be graded:
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of seconds,
Time input of abc
Deliverables:
flowchart a pseudocode a points
hwac basic source code points
flowchart b pseudocode b points
hwbc errorhandling # points
flowchart c pseudocode c errorhandling # points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
