C++ project
Our goal is to create a program that will do the following tasks.
· Offer the user a choice between coordinate or Euclidean geometry
· Offer the user a choice to calculate midpoint, distance, or slope from coordinates
· Take appropriate inputs to calculate them
· Offer the user a choice of Euclidean shapes: rectangle, circle, or triangle
· Offer the user a choice of area or perimeter (circumference)
· Take appropriate inputs to calculate them
When designing this program, use the standard library header.
You will need to create appropriate switches, if statements, or loops.
You will need to throw errors for invalid inputs or outputs (no negative lengths or areas).
You will need to define functions that your program can call and any needed constants.
Rubric:
|
|
A level |
B level |
C level |
D/F level |
|
Conditional Operations (If, Switches) 20% |
Prompts to guide user with appropriate options |
Appropriate options but with little user prompting |
Options do not work accurately although an attempt is made |
No inclusion in the program |
|
Functions and Constants definitions 20% |
Functions and constants defined independently of the main program |
Functions and constants defined within the main program |
Functions do not work accurately although an attempt is made |
Not included in the program |
|
Errors and invalid inputs/outputs 20% |
Errors for expected problems and also unexpected ones |
Throws errors but does not anticipate invalid inputs/outputs |
Errors are not thrown correctly, but an attempt is made |
Not included in the program |
|
Mathematical accuracy 20% |
Operations produce mathematically sound results |
Most operations produce accurate results |
Few operations produce accurate results |
No operations produce accurate results |
|
Overall design and execution of the program 20% |
Program is easy to follow, works correctly, and is user-friendly |
Program works although it is jumbled or unclear |
Program does not work in its entirety, though some parts may |
Program does not work at all |