Docsity

Object-Oriented-Programming , Exams of Advanced Computer Architecture

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download Object-Oriented-Programming and more Exams Advanced Computer Architecture in PDF only on Docsity!

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

for education fees. So, naturally we need to find out how long we can settle a loan for a certain amount of monthly payment at a certain interest rate.

  1. Create the following application.