
Object Oriented Programming
Quiz
Directions: Create the following program according to what is needed. One program is equivalent to one quiz.
Submission will be on July 2, 2016.
1. Simultaneous equations are equations that involves two or more unknown variables. There must
be as many equations as the number of unknown variables in order for us to solve the problem. In
this example, we shall only solve linear simultaneous equations. Linear simultaneous equations
take the following forms:
ax+by=m
cx+dy=n
Simultaneous equations can normally be solved by the substitution or elimination methods. In this
program, we use the substitution method. Reorganizing the equations derived the following
formulas:
x = (b * n - d * m) / (b * c - a * d)
y = (a * n - c * m) / (a * d - b * c)
2. This is simple calculator that uses a list box
which include four operators, addition, subtraction, multiplication and division. It can perform the
above four basic calculations by changing the arithmetic operators.
3. Currently people seem to face a lot of
difficulties to secure a loan or have problem to
pay back a loan. Still, we need to borrow money every now and then to acquire an asset or to pay