C# – Object Oriented Programming – Lab 4

Here is the scenario we want to test: – Write a “if else” statement that checks to see if bx and by are INSIDE the box. If the point (bx,by) is inside the box, print “Inside” otherwise print “Not inside”. (Hint use && in your answer) – Write a “if else” statement that checks to… Continue reading C# – Object Oriented Programming – Lab 4

C# – Object Oriented Programming – Lab 1 (Roots of a quadratic equation)

So I thought I’d upload some of the C# Object Oriented Programming labs I was given in my Computer Games studies and my solutions for them. Here’s the first one: Lab1 Create a Windows Console application, with a number of variables: a, b c (floats) x1 and x2 (floats) hasRoots (boolean) The purpose of the… Continue reading C# – Object Oriented Programming – Lab 1 (Roots of a quadratic equation)