Question: Before your lab class, draw a flowchart for your proposed program ( see program specification below ) . See the Lecture notes for information on

Before your lab class, draw a flowchart for your proposed program (see program
specification below). See the Lecture notes for information on how to draw a flowchart.
Remember, a flowchart does NOT contain code. Rather, it is a visual description of an
algorithm and is written in plain English. You may produce your flowchart on a
computer, or, you may NEATLY draw your flowchart by hand on a piece of paper.
Your flowchart is due at the START of your lab class (submission on paper) and is worth
20% of this labs grade (see the APSC 177 Lab Guide).
Program Specification
Write a C++ program to:
APSC 177 Lab 22
- prompt the user to enter, and then read in, an angle of attack (
) and the
corresponding measured lift coefficient from Table 1(remember units!)
- compute the modeled lift coefficient for the entered angle of attack using the
expression
C = Asin(2
/B)
where A =1.3[unitless], B =95 degrees and
is in degrees1
- compute the percent difference between measured and modeled lift
coefficients. Compute this percentage as the absolute difference between
measured and modeled lift coefficients divided by the modeled lift coefficient.1
- output the angle of attack, measured lift coefficient, modeled lift coefficient, and
lift coefficient percent difference as in the following example of user/computer
interaction
-
Enter the angle of attack in degrees: 24
Enter the corresponding measured lift coefficient: 1.281
Angle of attack in degrees 24
Measured lift coefficient 1.281
Modeled lift coefficient 1.29982
Percent difference 1.44807
- use a constant for pi (using the arccosine function1)

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!