瑠淵淵篤」脚牌織辮

rsity
I午
計国 く
College of Engineering
tage
Subject: Computers
Time:
Department of Roads and Transport
Examiner: Dr. Basim Al-Humeidawi
3 hours
Date: /
/2014
Note: Answer All questions
rinal Exanl:nat:om 2013‐
2014
Ql:
Write a programm. i" Fort
format. (Note: use subroutine formula in your answer).
■
0
1
1
・
■
1
・
■
■
・
1
■1
0
1
1 1 1 1 ュ I I I l ︰ J
2
0
1
0
1
1
︲ ︲
5 4 引2 餌 0
︲
■
■
一
ヽ
0
31 41
21 3!
11 21
Q2: A) Correct the following *.o"gJtutements (Answer f"
1' Equation Y: {x+3-*2/ 3*-4 r""d to be solvei using Microsoft Excel. If you know
… that x value was
W¨
wri■ en h cdl C5,thc equttion was so市 ed as=c弄 *1/2+3-x∧
Iな
2/(3*こ
ξ
…………
(eyboard you havc tO prcss ctrl‐ 卜
F.
瑠淵淵篤」
脚 牌織 辮::l卜 Ю
ws
5. The systenl unit cOnsists OfmOther bOard,central prOcessing unit and Output unit
6. TransistOr was uscd in flfth generatiOn ofcOmputers.
B)COnVCrtthe fol10wing numbcrs from their current system tO decimal system(Answcr Three Only).
Write the steps of cOnverting.
1-(1011.101)2
2-(2C3.7ED)16
3…
(120.75)8
4-(CA3.73B)16
Q3: Answer (A) or (B)
A) write a programme in FORTRAN to read the matrix B (100) and find the factorial of the
average value
of their elements of the matrix. print both the average and the factorial.
B) Write
a
肩 r¬
蔵竃
programme in Fortran to read the matrix A (1,{) then arrange their
elements in Ascending order
TT… … T……
…… T…… … F―
{』
J!』 重ョェ:≦ F)
……
Q4:A)Write
aprOgrallllme
in Fortran tO flnd the value OfY
accOrding tO f0110wing
equatiOn oOte:PHnt X
=T…
========rTIITTτ
=マ
●
ヽ
ア
___1_
_
、
ア
●
・
^_」
^^
_.
「
value^^^v_
as
and Y value as
i two
different
lines)
, in
tァ 01.、
y:
X:,
-100≦
χ =0
25>χ >o
e
h
t
d
χ
0
χ
0
>
x
W < 一
>
一
a
r
d
n
a
>
面<
χ
r
o n
g i
s
︲
a 2
D y
¨
也
y=
χ <o
flaw chart to find the value of
y
from the following equation
0
χ
20 Marks
Q5: write a programme.in Fortran to read X value then find
s value for all terms greater than 1 x lT6.
(Note: print S value in 5th line starting
:l
*itr, +ilcJ**
"r'i
∫
=
Ψ
十二千 早三―
島
Ψ
整 I―……
十三
竜[二
( 20 Marks)
の ヵ グS′ ′06“a
“ "「
のπG“れ ′¨