Software Engineering

I'm already paying someone to download the lectures for me. I'll let you guys know when I have them. I won't charge to make copies.by

Would anybody be interested in a copy of the DVD if I download the video lectures myself?by

Hi, I found a set of lecture videos for discrete mathematics. It's about 3GB in total. Would anybody in Gauteng be interested in downloading and burning it to DVDs? (It's open content, so it's legal to do that.) http://www.aduni.org/courses/discrete/index.php?view=cw Regards, Gustav Bertramby

Question 10 states: ____ is a partition of A union C: A. {1,2,3,4} B. {{1,2,3,4}} C. {{1,2},{3,4}} D. {{1},{2},{3},{4}} According to the definition on pg 205 of E&C, the partition of X is any set of subsets (or parts) that have no elements in common, and the union of all parts is equivalent to X. A union C = {1,2,3,4}, so answers B, C and D all fit the definition of a partitionby

You can make and save .GIF images using MS Paint. Then, inside MS Word, you simply Insert > Picture > From File. Remember that the document you submit must be smaller than 1 MB.by

It might help if you specify who you are, where you are able to attend, and what days you have available for a study group.by

"All your database are belong to us?"by

Henry, I thought "normal programmers" were the ones who had no actual lives besides PCs? (Yes, I'm a hacker, and proud of it.)by

Mr. Ssemugabi, Q1: I responded "Yes", because I thought it would help when forming study groups. It was mostly unsuccessful, since most of the students who initiated contact did not seem to know good email etiquette, and often sent an email to *every* name on the list, regardless of location. Q2: I strongly agree that discussing problems with other students helps with learningby

Yeah, but we cheated. We're all programmers.by

What am I missing? My textbook's version of Algorithm 8.3 in Chapter 8 of F & M (on page 148) is as follows: 1. if (the number is between 90 and 100, inclusive) then 1.1 Set the grade to "A" End if 2. if (the number is between 80 and 89, inclusive) then 2.1 Set the grade to "B" End if ... Do I have a "wrong" version of thby

Randal, I've seen that use before, but a more OOP way would be to use exceptions. That way you can escalate the error up to a point where you can exit gracefully. It's more work though.by

Uh... that is what I said. QuoteGustav Bertram#include <library> is the C++ style to do it. I suggest you stick to the C++ style.by

"it's like goto", "it's a relic of C", "it will crash the system" and "the new textbook is wrong too" are not valid justifications either. goto is to be avoided in the context of structured languages because there are better alternatives and because it's a bad habit to use unstructured coding in a structured language. goto is still apprby

Actually Chris made a mistake with the if - He forgot to put an || between the two statements. The if code can also be simplified to: if ( (i<=2) || (i>=(H-1)) || (j<=2) || (j>=(W-1)) ) { cout << c; } else { cout <<" "; }by

Hi Bossf, When posting code, you should put it in a block. That way formatting will be preserved. Chris beat me to the answer. Either remove extra spaces, or add extra spaces. Personally I would also unify the two IFs by putting an || between the two conditions. if (a==1) { z(); } else if (b==1) { z(); } Is equivalent to: if ((a==1)||(b==1)) { z(); } Itby

Rob, Why do you say that <math.h> should be used instead of <cmath> in a C++ program? Gustavby

Hi Jaco, #include <library.h> is the C style to include headers, while #include <library> is the C++ style to do it. I suggest you stick to the C++ style. The difference between <math.h> and <cmath> is that <math.h> is a C library, where <cmath> is a *different* C++ library intended to recreate the functionality of <math.h> in C++. I looked at thby

Hi Andres, It would help if you posted the code, but I expect that you accidentally used = (assignment) where you meant to use == (comparison). If you are having trouble understanding your if statements, try drawing a truth table: x | x != 'E' | x != 'F' | (x != 'E' || x != 'F' | (x != 'E' && x != 'F' A true truby

I kept thinking: "This is too easy. What's the catch?", but after doing the whole assignment, I didn't find any other trick questions or hidden twists. So my conclusion is that it really is as simple as it seems.by

Jaco, They said "show one step", so I assumed no simplification was required.by

Use LaTeX! As a free bonus, you get to learn an ascii mathematical notation. (See my other thread for instructions.)by

Hi, The instructions for MiKTeX is pretty simple. Download the package, install it, and then whenever you want to create a PDF from your .tex file, at the command line you can just type: pdflatex file.tex And a pdf file will be compiled. If there are errors in your file, it will complain though. A minimal .tex file that you can play with is: \documentclass{article} \usepackage{amsby

Hi, My bad - I typed in my formula incorrectly. 1 should be added to the result. My correct formula is: a_n = (\sqrt{a_{n-1} - 1} + 1)^2 + 1 Notation notes: I'm using AMS-LaTeX notation. _ is a notation for subscript a_1 would be a sub 1. \sqrt{y} is the x'th root of y. With [] omitted, square root is assumed. \sqrt[3]{2} would be the cube root of 2. {} are non-displayinby

UPDATE: I've changed my previous post to include the setting for switching the font to Times New Roman!by

Not all users are novices, therefore not all programs should cater to novices. Emacs/XEmacs was designed for efficient text editing. That was it's only consideration. XEmacs is my main IDE, even on Windows.by

Hi, I've figured out most of it already. I found a fairly good introduction on LaTeX (including a section on mathematical typesetting) here: ftp://cam.ctan.org/tex-archive/info/lshort/english/lshort.pdf Interesting fact: The COS101 textbook (Ensley & Crawley) was made using LaTeX! Check the copyright page, near the top. Here's my assignment2.tex file (% starts commentsby

The prescribed book for COS101 is: Discrete Mathematics: Mathematical Reasoning and Proof with Puzzles, Patterns, and Games. ENSLEY D.E. & CRAWLEY J.W. John Wiley & Sons, USA, 2006. ISBN 0-471-47602-1by

Hi, We are allowed to submit our online assignments in PDF format. Since LaTeX was written to typeset mathematical texts, and since it can export to PDF, I thought I would try using it for my assignments. Most Linux systems have a LaTeX implementation already installed. Windows users can use MiKTeX (http://www.miktex.org/) which is an up-to-date LaTeX implementation for Windows. (The onlby