28 Sep Instructions:?? The purpose of this program is to process a sequence of points in a Cartesian coordinate system, and determine, for each point, whether it lies inside or outside of
The purpose of this program is to process a sequence of points in a Cartesian coordinate system, and determine, for each point, whether it lies inside or outside of a forbidden region. The program begins by reading in the definition of the forbidden region, which is defined by a sequence of points defining the vertices of a polygon region. For example, the figure below depicts a forbidden region described by 7 points.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
REQUIREMENTS
1. You must use as your main module the instructor supplied file “Prog1.cpp” without modification.
2. Your program's output must appear exactly as shown in the sample run, producing exactly the same output format.
3. Use const definitions to define symbolic constants rather than hard-coding constants into your program. For example specify the array dimensions (size) with a symbolic constant. Then, it is easy to change the sizes of all of the arrays. Do not use #define to name constants.
4. Use descriptive names throughout your program. Strive to make your code so readable that is self-explanatory. If you can’t think of a meaningful name for a variable, constant, parameter, of function, then you don’t really understand your program.
5. Use a consistent indentation scheme to help show the structure of your program.
6. Use the required capitalization convention to distinguish variables from constants. The required convention is that constant names and function names have the first letter of each word capitalized (e.g., MaxSides), and variable names, member names, and parameter names, have the first letter of every word except the first capitalized (e.g.,
thePoint, numSides). Thus, constants and functions always start with a capital letter, and variables and parameters start with lower case.
7. Include a sufficient number of comments to explain your program. See your instructor’s demo programs, which illustrates acceptable comment usage.
8. Do not use goto statements.
9. Do not use global variables. Define all variables inside function definitions.
10. No function definition may be longer than one page (60 lines).
11. Do not use redundant code. If you need the same procedure in more than one place, make it a function.
12. Keep your functions simple. If your program seems overly complex, it probably is. This means that you did not spend enough time designing, before you started typing code. KEEP IT SIMPLE!
13. Eliminate all compiler warning messages.
14. Use C++ style input/output. Do not use C-style input-output functions (stdio) such as printf(), scanf(), getchar(), putchar(), etc.
ASKER only need to enter the code in the commented lines
.Incomplete
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
