Question: Write a program that will request the user to enter the name of the 4 digit NACA airfoil in the following format NACA XXXX, and

Write a program that will request the user to enter the name of the 4 digit NACA airfoil in the following format NACA XXXX, and output a plot of the airfoil shape with the title of the airfoil at the top. The user must input NACA ####. This must be error checked. The string input must consist of the letters NACA in all upper case in the first four elements, a space in the fifth element, and then four numbers in the last four elements. The first two numbers must both equal 0 or both be any digit between 1 and 5, including both 1 and 5 (example of some valid inputs: 00, 12, 55, 42)(example of some invalid inputs: 01, 10, 16, 30). The last two numbers must consist of two digits and be a whole number between 05 and 25

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!