Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Object-Oriented-Programming , Exams of Advanced Computer Architecture

Caution: in order to improve the quality of content, points will be awarded within 24-48 hours following a review. You will receive an email crediting of points.

Typology: Exams

2015/2016

Uploaded on 12/09/2016

kingjovin
kingjovin 🇵🇭

1 document

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