驚淵淵臆ξ脚牌蹴辮 :鵠ht謝驚∬出 辮淵 ∬ Cessi鶴面帥d∞り帆面

≒・
University ofAl‐ Qadi
College of Engineering
:
1"' Stage
Subject: Computers
Time:
Department of Roads and Transport
3 hours
Date: I
Examiner: Dr. Basim Al-Humeidawi
12014
Note: Answer Alt questions
『 :mal Dganl:mat:om 2013‐ 2014
Ql: Write uprogru*
format. (Note: use subroutine formula in your answer).
■
1 1 1 1 1 l I I I I ヨ
■
・
0 1
■
・
︲︲
︲ 引2
勢4
■0
0
・
1
1
2 ■
1
1
■
■
1
11
0
3
2
0
■
1
4
︲
1
1
一
・
一
1'
0
Q2: A) correct the
1 31
1 2!
fo@ements
(Answer r"
Equation Y: {x+3-x't li-q n..i to be solvei rri.rgMi".osoft
Excel. If you `
know
that
。し入
va■ uC was
x value
was
・ υW uユ
wri■ en h cdl C5,the equatiOn was so市 ed郎 =ci桑
高
覇
│こ」こ ;1イ rい
kcyboard you have tO press ctrl‐卜
F.
:鵠ht謝驚∬出
辮淵
驚淵淵臆ξ
脚 牌蹴 辮:r:IЮ ws
Cessi鶴 面帥
d∞ り
帆面
∬
B)COnVertthe following numbers from their current system tO decimal system(Answer Three Only).
Write the steps ofconverting.
(1011.101)2
2C3。 7ED)16
3-(120.75)8
4-(CA3。 73B)16
1‐
2‐
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 programme
in Fortran to read the matrix A (N) then arrange their elements in
Ascending order
value as X=,and Y valuc as Y=,in twO different lines)
-100≦
χ <o
χ =0
25>χ >o
B)WHte an algOrithm and draw the flaw charttO flnd the value Of Y from the fO110wing equatiOn
y=│:務
)
i::│
6Sin(χ
20 Marks
Q5: write a programme in Fortran to read X value then find S value
for all terms greater than 1 ,106.
(Note: print S value in 5th line starting with
"
4th
""r*- "r'i
:l
∫
=券 一
誕評+聖詳LE宅ギ+f宅ギー・
( 20 Marks)
の ″
“
グ∫′′o5“凛
の G“れ ′角残切滅カグ
“