Ex (Algorithm)
Ex (Algorithm)
៉ សុីនែដលបកែ្របកមវ� ធ
1. A compiler គជាមា
ឺ ិ ីមួយសរេសរជាភាសមា៉សុីនេទជា high-
cot 3 x + 4
a. log x > 2 tan x
2 3 2
b. (5x 2
y − 3y )
3 3
+ sin x 2
c.
y2 − 2x
sin 2 ( x − y ) + 1
d. ។
1 + x2 − y 2
4. ចូរសរេសរជាកេន្សោមពិជគណិត
a. (Y − A ∗ X ) / B b. ABS ( X − Y ) / (1 + X ) ^ ( A ^ 2 )
c. 3 ∗ A ∗ B / (C − D ) d. X ^Y =
> X ∗Y ។
5. A file of incoming freshmen contains, among other data each student’s NAME
and SCORE on an entrance examination. Draw a flowchart which will list the names
6. Each record in students, among other data, the student’s WEIGHT. Draw a
ំ ួ នគត់រុឡាទ
7. គូស Flowchart ែដលមាន Do loop េដយ Input ជាចន ឺ ីបវជ
ិ មា
� ន N
និង Output: ។
1 1 1 1
1 − + − + ... ±
2 3 4 N
ំ ួ ន្របាក់ែដល្រត�វបង់វភាគទន្របច
8. ឩបមាថាចន ិ ំ � របស
ឆា ំ ់សមាជក
ិ ៃនសមាគមន៌មួយ
ំ
កណ ត់តមតរងខងេ្រកម:
Input: =
a. A 10
= and B 5 b. A 3=
= c. A 5=
and B 5 = and B 10 ។
Flowchart
Start
Read A, B
A < B? =
A A2 + B
No
Yes
A= A + 2 B
No
A < 20? B= B + 5 A
Yes
B= B + 10 Write A, B
Stop
Output n! ។