In the earlier parts of this lab, you confirmed your skills in C++ and in Matlab.
In this part I want you to put those skills to work to carry out a very simple “estimation” process using C++.
Step 1: Get your hands on the survey measurements you took
Earlier in the course everyone in our class was asked to measure the width of our lab room with a tape measure. As you will see, they are surprisingly instructive. Get your hands on those measurements.
Step 2: Create a new C++ console application
Use the skills you learned in Part 1 of this lab to build yourself a new C++ project that uses the Eigen template library.
Step 3: Figure out how you’re going to “estimate” the width of the room
I’m not looking for any advanced estimation techniques here. Rather, use what you know from your earlier geomatics classes, your basic math skills, and some surveying logic to decide how to come up with the best estimate possible of the width of the room.
Show us what you know.
Step 4: Write some code to help you carry it out
I know you could do the math part of this with a calculator (or even by hand, really), but I don’t want that. I want you to show me that you can do it using C++. Remember that the goal of this lab is to help you fill your tool belt so that it’s ready when we get to solving more complex problems.
Just as in Part 1:
- You don’t need to read the measurements in from a file. You can just declare a vector and assign the values.
- You don’t need to create any functions or structures, or do any object oriented coding.
- I’d like you to properly document and organize your code.
Step 5: Compute the residuals too
With your estimate in hand from the above steps, I want you to calculate and output the residuals too.
Step 6: Submit your results
When you’ve completely finished your application you need to submit it.
To do this ad the following to your report:
- Your code (the .cpp file)
- A screenshot of the output you get when running the application yourself, which should at least include a summary of the measurements and a statement of your final answer
- A short description of the survey, a pre-analysis of the measurements, a summary of the logic you used to come to your solution, the solution itself
For bonus marks your application and report can also provide an estimate of the accuracy of your solution.
Step 7: Finish up and submit your report
Once you’ve finished this application you’re all done the lab. Use the buttons below to wrap it up.
And be sure to submit your report as directed.