Tutorials

There are no scheduled tutorials in this module due to the fact that many students are remote; however, over the years I have written a number of tutorials as below. The only way to learn in this module is to practice and these questions will take you quite some time to solve. Each of the tutorials are listed at the bottom of the page and there is a video solution for each of them, where I work through the questions and explain how I came up with the answers. 

DO NOT WATCH THE VIDEO WITHOUT TRYING THE QUESTIONS

If you watch my solution you will probably think that the questions were fairly easy and that you did not have to try them. This is probably not the case. While some of the earlier questions in each tutorial are fairly easy, they quickly progress to being quite challenging and what I am looking for you to do is to understand why you choose certain functions and how you know what to do. If you only watch my solutions it may seem obvious as you are not involved in making those choices.

So, please solve the following short C++ and Java problems. Your code should be as concise and as efficient as possible, while still preserving best practice  ‐  i.e. avoid cutting‐and‐pasting any code. Each tutorial will be designed to have questions that become progressively more difficult, from fairly straightforward to very challenging. 

Note: to download the file, right-click on [Download] and choose to save the file. These are in swf and mp4 formats. VLC will play both formats.

Note: There is a small mistake in Tutorial 1 Q9. The function doesn't work for factorial(0), which should evaluate to 0!=1. Thanks Mathieu for spotting that.
Ċ
Derek Molloy,
30 Sep 2013, 02:37
Ċ
Derek Molloy,
30 Sep 2013, 02:37
Ċ
Derek Molloy,
30 Sep 2013, 02:37
Ċ
Derek Molloy,
30 Sep 2013, 02:37
Ċ
Derek Molloy,
30 Sep 2013, 02:37
Comments