Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pre - lab Flowchart Before your lab class, draw a flowchart for your proposed program ( see program specification below ) . See the Lecture

Pre-lab Flowchart
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions