Summary: compute wing loading value based on aircraft's weight and wing area An important design factor...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Summary: compute wing loading value based on aircraft's weight and wing area An important design factor in aeronautical engineering is wing loading, defined as the weight of an airplane divided by its wing area. Low wing loading provides more maneuverability, but a bumpier, less comfortable flight; hang gliders have low wing loading. High wing loading is more fuel efficient and provides a more comfortable ride, but the plane is less maneuverable; commercial jetliners have high wing loading. Write a C++ program to input two values, the weight of an airplane followed by its wing area, compute the wing loading value, and output two results: (1) the wing loading value, followed by (2) "low", "average", or "high"-low if the wing loading value is less than 20.0, high if the wing loading value is greater than 600.0, otherwise average. Assume the input units are kilograms for the weight, and meters squared for the area. Example: suppose the inputs to the program are the following (weight then wing area): 130.6 13.7 The output should be: 9.53285: low There is one space following the "", and the output should appear on a line by itself (i.e. follow with endl). It is possible for one or both inputs to be negative, in which case the computation makes no sense --- in this case output "invalid data!" at most once. For example, suppose the inputs are 1200.50 -10.00 The output should be invalid data! Summary: compute wing loading value based on aircraft's weight and wing area An important design factor in aeronautical engineering is wing loading, defined as the weight of an airplane divided by its wing area. Low wing loading provides more maneuverability, but a bumpier, less comfortable flight; hang gliders have low wing loading. High wing loading is more fuel efficient and provides a more comfortable ride, but the plane is less maneuverable; commercial jetliners have high wing loading. Write a C++ program to input two values, the weight of an airplane followed by its wing area, compute the wing loading value, and output two results: (1) the wing loading value, followed by (2) "low", "average", or "high"-low if the wing loading value is less than 20.0, high if the wing loading value is greater than 600.0, otherwise average. Assume the input units are kilograms for the weight, and meters squared for the area. Example: suppose the inputs to the program are the following (weight then wing area): 130.6 13.7 The output should be: 9.53285: low There is one space following the "", and the output should appear on a line by itself (i.e. follow with endl). It is possible for one or both inputs to be negative, in which case the computation makes no sense --- in this case output "invalid data!" at most once. For example, suppose the inputs are 1200.50 -10.00 The output should be invalid data!
Expert Answer:
Answer rating: 100% (QA)
Here is a sample C program that takes the weight and wing area of an airplane as input computes the ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Ellie, a CPA, incurred the following deductible education expenses to maintain or improve her skills: travel and transportation 1700.00 Tuition 6000.00 Books 800.00 Elli's AGI FOR THE YEAR IS 60,000...
-
Rob Roy Corporation has been using its present facilities at its annual full capacity of 10,000 units for the last three years. Still, the company is unable to keep pace with continuing demand for...
-
Mark is practicing his tennis serves. He wants to be able to tell newspaper reporters the long-run proportion of getting his fi rst serve in. Mark gets 17 of his first 20 serves in. a. Is 17 out of...
-
Heritage, a general contractor, had filed a breach of contract action against an electrical subcontracting firm that had withdrawn its bid right before the contract was to be performed. A jury had...
-
Bullseye Department store is a discount retailer of general merchandise in the Southeastern United States. The company owns more than 50 stores in Florida, Georgia, South Carolina, and Tennessee that...
-
In June 2022, the Federal Reserved imposed its first 0.75% interest rate hike -- the largest increase since 1994. Starting in January 2023, they dropped back to lower rate increases, but the rate...
-
Joanne is an accrual method taxpayer. She owns an apartment and enters into a lease on Nov. 15, 2022, for the 2023 year. The tenant prepays the rent in November for the entire year. The amount of the...
-
Can you elucidate the impact of quantitative easing policies on the interest rate risk profiles of investment banks?
-
You have now selected a product segment. Please conduct a geographic analysis to determine the ideal country for expansion. This analysis should consider the compound annual growth rate (CAGR) of the...
-
Does Emily have to complete form T1135 to report her USA bank account she received as an inheritance and if so what amount does she report?
-
What are two RHIOs? Describe each briefly and their stakeholders. Compare their functionalities and services to members. Which administrative, technical, and financial challenges or any other...
-
A 3-phase turbine-generator is operated at 6.6 MW, 0.85 power factor lagging. Determine the apparent impedance in pu measured at its terminal looking towards the generator step-up transformer. The...
-
The 5-month LIBOR rate is 3%, and the 2-month LIBOR rate is 2%, on the basis of continuous compounding and 365 days a year 1. Estimate the 3-month Eurodollar futures price quote for a contract...
-
As indicated by mutual fund flows, investors tend to beat the market seek safety invest in last year's winner invest in last years loser
-
Will maximizing a profit contribution objective function always result in also maximizing total net profits?
-
Give an example of monopoly in the labor market. Discuss such a monopoly's effect on wage rates and on inflation.
-
Dynamic rather than static demand and supply conditions are typically observed in real-world markets. Therefore, comparative statics analysis has only limited value. Discuss this statement.
-
Which of the following is a discrete probability distribution? Approach In a discrete probability distribution, the sum of the probabilities must equal 1, and all probabilities must be between 0 and...
-
Graph the discrete probability distribution given in Table 1 from Example 2. Approach In the graph of a discrete probability distribution, the horizontal axis represents the values of the discrete...
-
Compute the mean of the discrete random variable given in Table 1 from Example 2. Approach Find the mean of a discrete random variable by multiplying each value of the random variable by its...
Study smarter with the SolutionInn App