1. Consider the following 1 dimensional array.
double N[4] ={1.5,5.5,4.8,0.1};
state the value for
I) N[0]
II) N[1]
III) N[2]
2. Consider the following Array.
int M[2][4] = {7,8,9,1,0,3,2,1};
state the value for
I) M[0][0]
II) M[0][1]
III) M[2][0]
IV) M[2][2]
V) M[2][3]
3. Change the following if statement code to switch statement
scanf("%d",&bulan);
if (bulan == 1)
printf("JANUARY");
else if (code == 2)
printf(”FEBRUARY”);
else if (code == 3)
printf(”MAC”);
else
printf(”Other than the first three month of the year”);
6/25/2014
6/20/2014
6/17/2014
6/16/2014
FEP 1023 Intro. to Programming. Markah Penilaian sehingga 16/6/2014
No | Matrix no | Quiz 20/4 (10M) | Quiz 11/5 (5M) | Lab Sheet 4 (1M) | Asgmt 1 (60M) | Asgmt 2 /Lab Sheet 2 (25M) | Lab Sheet 2 (1M) |
1 | 13C14087 | ||||||
2 | 13C14090 | 8 | 5 | 53 | 20 | 1 | |
3 | 13C14092 | 10 | 5 | 1 | 51 | 25 | 1 |
4 | 13C14093 | 4 | 10 | 1 | |||
5 | 13C14095 | ||||||
6 | 13C14097 | 6 | 5 | 36 | 20 | 1 | |
7 | 13C14098 | 10 | 5 | 1 | 54 | 20 | 1 |
8 | 13C14099 | 10 | 5 | 1 | 45 | 15 | 1 |
9 | 13C14100 | 10 | 4.5 | 1 | 53 | 20 | 1 |
10 | 13C14101 | 10 | 4.5 | 1 | 51 | 20 | |
11 | 13C14102 | 10 | 4.5 | 1 | 51 | 20 | 1 |
12 | 13C14103 | 10 | 5 | 1 | 51 | 15 | 1 |
13 | 13C14104 | 10 | 5 | 1 | 54 | 20 | 1 |
14 | 13C14105 | 10 | 4.5 | 1 | 54 | 20 | 1 |
15 | 13C14106 | 10 | 5 | 1 | 50 | 25 | 1 |
16 | 13C14109 | 10 | 5 | 54 | 20 | 1 | |
17 | 13C14110 | 9 | 5 | 1 | 53 | 20 | 1 |
18 | 13C14112 | 10 | 5 | 37 | 20 | 1 | |
19 | 13C14113 | 10 | 4.5 | 46 | L | ||
20 | 13C14117 | 6 | 4.5 | 53 | 15 | 1 | |
21 | 13C14118 | 5 | 0 | 42 | |||
22 | 13C14119 | 7 | 5 | 33 | 20 | 1 | |
23 | 13C14122 | 10 | 5 | 1 | 50 | 25 | 1 |
24 | 13C14123 | 9 | 5 | 37 | 15 | 1 | |
25 | 13C14124 | 8 | 0 | 15 | 1 | ||
26 | 13C14125 | ||||||
27 | 13C14126 | 6 | |||||
28 | 13C14127 | 4 | 0 | 20 | 1 | ||
29 | 13C14131 | 8 | 5 | ||||
30 | 13C14132 | 6 | 5 | 33 | |||
31 | 13C14133 | 8 | 5 | 15 | 1 | ||
32 | 13C14134 | 8 | |||||
33 | 13C14135 | 8 | 5 | 20 | 1 | ||
34 | 13C14140 | 9 | 5 | 25 | 1 | ||
35 | 13C14141 | 6 | 5 | ||||
36 | 13C14142 | 10 | 5 | 45 | 10 | 1 | |
37 | 13C14143 | 9 | 5 | 20 | 1 | ||
38 | 13C14144 | 4 | 5 | 42 | 15 | 1 | |
39 | 13C14145 | 4 | 0 | 42 | 15 | 1 | |
40 | 13C14146 | 5 | 5 | ||||
41 | 13C14147 | 6 | 0 | 20 | 1 | ||
42 | 13C14148 | 5 | 0 | 33 | 20 | 1 | |
43 | 13C14150 | 10 | 5 | 1 | 51 | 25 | 1 |
44 | 13A13033 | ||||||
45 | 13C14052 | 4 | 5 | 42 | 15 | 1 |
Berikut adalah markah untuk :- Quiz1, Quiz 2, Lab Sheet1,Lab Sheet 2, Assignment 1 dan Assignment 2.
Pelajar yang belum menghantar Assignment 1 dan Assignment 2 sila berbuat demikian selewat-lewatnya khamis 19/6/2014 (dengan penalti).
6/15/2014
FEP 1023 Intro. to Programming. Nota Array, Modular Programming & Lab 5
Berikut adalah Nota (slide) untuk :-
Array &
Lab Sheet 5 akan di jadikan sebagai tugasan (mini project) sila 'download' dan hantar sebelum atau pada 30/6/2014.
6/10/2014
FEP 1023 Intro. to Programming. Contoh Test 1.
Ujian 1 akan di adakan pada ketetapan berikut:-
Tarikh : 19/6/2014
Masa: : 2.30 pm (masa lab)
Contoh soalan adalah seperti berikut:-
1. Respond with
the correct answer by marking either True “T” or False “F” for each question.
2. Draw
flowchart symbols used for the following:-
I.
High-level
languages include C, C++ and C#.
( T / F )
- “analyze the problem” means determine the input, process and output.
( T / F )
III.
The equation area = length x width can be written in C as:
wages = length x width; ( T / F )
IV.
Algorithm is a step-by-step problem-solving process. (
T / F )
V.
guarantee
that the program will run correctly. (
T / F )
VI.
Semantic rule: rules that specify which statements (instructions)
are legal. ( T / F )
VII.
Identifier
(variable name) must begin with a
number. ( T / F )
VIII.
C is NOT case
sensitive - NUMBER is the same as number. ( T / F )
IX.
bool type has two values: true and false. ( T / F )
X.
Order of
Precedence - All
operations inside of ()
are evaluated first. ( T / F )
XI.
Variable is a memory location whose content may change
during
execution. ( T / F )
i.
Start
ii. I. End
II. Processing
III.Decision Making
IV.Branching
VConnector
II. Processing
III.Decision Making
IV.Branching
VConnector
3. Write C statements that declare the following variables
A Student CGPA float
CGPA; (example)
i)
A number of student
ii)
The average of marks
4. In C, a value can be inputted from keyboard into integer variable number1 and number2.
Write the C
statement to read the values.
scanf(“%d%d”, &number1,&number2); (example)
i)
Write the C statement to display the values.
ii)
Write
the C statement to sum number1 and number2 in store in another variable called MySum.
5. Evaluate
the following expressions:
I.
10 + 2 / 2
II.
3 * 3 + 3 % 2
III.
3 + 2 / 5 + -2 * 4
IV.
2 * (1 + -(3/4) / 2) * (2 - 6 % 3)
For
each of the following, write a flowchart and a C Program.
6.
Write a program that reads the user’s age and then prints “you are a child” if
the age <18 18="" adult="" age="" an="" and="" are="" citizen.="" if="" ou="" senior="" you="">=65. (10M) 18>
7.
Write a program that print integer 1 to
50. (10M)
***Mohon Maaf - textnya agak bercelaru
Subscribe to:
Posts (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...