![]() |
Problem Solving with ComputersUniversity of New Brunswick - FrederictonFaculty of Computer Science |
Lab Exercises - updated:2017-08-15
Lab Exercises are intended to give you practice both setting up solutions to simple computational problems and implementing those solutions on a computer. Your set-up should include a complete mathematical description of the solution where possible, and manual calcuations which can be used to help validate your implementation. Complete all the set-up work for each of the exercise in your logbook. When you have a well-formed solution set up, design an automated soloution (one that is computer generated). Then use the set-up and design to guide you in an implementation on the computer. Make sure you follow all the Coding Standards discussed in lecture. If you want feedback, print a copy of your program and hand it in together with an Exercise Submission Title Page.
Note that the lab includes 3 levels of questions. The BASIC level indicates material that we have already covered in class, so you should be able to complete these quesions with little assistance. the ADVANCED level indicates material that we will cover in class, but have not yet done so. You may choose to defer these quesions until the material is covered, but if you have time and want to work ahead, you can try these questions, seeking help from the TA when you get confused. The CHALLENGE level indicates material that is beyond the scope of the class. Most students won't attempt these questions, but if you are interested in learning how to do more with matlab, these are questions for you.
Exercise 1 (2017-08-17) Tank Volumes |
Solutions - for height = 5m, Vwater = 82.47m^3 (see FAQ Q3, Q5) |
Exercise 2 (2014-07-21) Best Line of Fit |
Solutions - N/A (see FAQ4) |