| No. | Matric No. | QUIZ 2 | TEST 2 |
| Q2 | T2 | ||
| 5% | 10% | ||
| 1 | 14A12012 | 2.5 | 7.4 |
| 2 | 14C19003 | 5 | 0.0 |
| 3 | 14C19005 | 5 | 8.6 |
| 4 | 14C19006 | 2.5 | 5.1 |
| 5 | 14C19007 | 2.5 | 5.6 |
| 6 | 14C19013 | 5 | 4.4 |
| 7 | 14C19016 | 5 | 8.6 |
| 8 | 14C19017 | 5 | 0.0 |
| 9 | 14C19020 | 5 | 9.3 |
| 10 | 14C19022 | 2.5 | 7.7 |
| 11 | 14C19027 | 5 | 6.3 |
| 12 | 14C19028 | 2 | 9.3 |
| 13 | 14C19029 | 0 | 0.0 |
Showing posts with label 14/15 SEM 1 FCT1033. Show all posts
Showing posts with label 14/15 SEM 1 FCT1033. Show all posts
10/20/2014
FCT1033 Intro to Programming.
Berikut adalah markah untuk quiz 2 dan ujian 2. Masing-masing akan menyumbang 5% dan 10% kepada 'total mark'.
10/19/2014
FCT1033 Intro to programming. Test 2- Jawapan Pelajar dan 'Marking'
10/07/2014
FCT1033 Selection, Looping Exercise
1.Draw a flowchart for computing and printing the simple interest rate for 1 to 10 years at the rate of 3% per annum on an investment of RM 100.
2.Write an algorithm (pseudocode or flowchart) for a program that read 10 integers. Find the maximum and minimum number among the 10 (hint: use selection statements together with looping statements).
3. A Book Publisher offers discount to customers on the basis of customer type and number of copies ordered as shown below:
Customer number, name, type, book number, number of copies ordered and unit price are given as input. Draw a flowchart to calculate the net amount of the bill for each customer and print it.
9/27/2014
FCT1033 Nested Loop Exercise
- A nested loop is a loop within a loop, an inner loop within the body of an outer one. How this works is that the first pass of the outer loop triggers the inner loop, which executes to completion. Then the second pass of the outer loop triggers the inner loop again. This repeats until the outer loop finishes.
![]() |
| Flowchart 1 |
![]() |
| Flowchart 2 |
FCT1033 Iteration Exercise 28 Sept 14
Masalah yang boleh di selesaikan dengan pengaturcaraan komputer boleh di kelaskan kepada 3 bahagian:-
1. Sequence
2. Selection
3. Iteration.
Posting pada kali ini masih membincangkan jenis yang ke tiga iaitu Iteration.
Camkan (identify) 3 perkara di bawah terhadapt pseudocode dan flowchart yang di berikan:-
i) The initialization of the loop control
ii) The loop repetition condition.
iii) The update of the loop control.
Flowchart 1
I. set counter to 1
II. print counter
III. increase counter by 1
IV. repeat steps 2,3 until counter equals to 10
Pseudocode 2
I. Get a value for n.
II. Give p the value 1.
III. While n is positive
3.1 Multiply p by n
3.2 Substract 1 from n
IV. Print p
1. Sequence
2. Selection
3. Iteration.
Posting pada kali ini masih membincangkan jenis yang ke tiga iaitu Iteration.
Camkan (identify) 3 perkara di bawah terhadapt pseudocode dan flowchart yang di berikan:-
i) The initialization of the loop control
ii) The loop repetition condition.
iii) The update of the loop control.
Flowchart 1
Pseudocode 1
II. print counter
III. increase counter by 1
IV. repeat steps 2,3 until counter equals to 10
Pseudocode 2
I. Get a value for n.
II. Give p the value 1.
III. While n is positive
3.1 Multiply p by n
3.2 Substract 1 from n
IV. Print p
9/21/2014
FCT1033 Iteration Exercise
1. Show output of the following flowchart:-
![]() |
| Flowchart 1 |
![]() |
| Flowchart 2 |
![]() |
| Flowchart 3 |
2. Draw a flowchart for a program to print 10 to 20
3. Draw a flowchart for a program to print 20 down to 10
4. Show output of the following pseudocode:-
I. set counter to 1
II. print counter
III. increase counter by 1
IV. repeat steps 2,3 until counter equals to 10
pseudocode 1
I. count assigned zero
II.While count < 5
III. Display "I love computers!"
IV. Increment count
V. End while
pseudocode 2
I.Display “ I love Computers!”
II.Repeat step 1 four times
pseudocode 3
5. Write a pseudocode for a program to print 10 to 20
6. Write a pseudocodefor a program to print 20 down to 10
9/11/2014
FCT1033 Assignment 2
Design an algorithm (pseudocode or flowchart) for the following problems:-
CPA Status
2.0 - 4.0 Satisfactory
1.7 - 1.9 Conditional
0.0 - 1.6 Failed (Terminated)
1.7 - 1.9 Conditional
0.0 - 1.6 Failed (Terminated)
2. An electric supply company charges the following rates for its customers:-
No. of unit
consumed
Charges/unit (RM)
1-200 0.218
1-200 0.218
201 -300 0.334
301-600 0.516
601-900 0.546
>=901 0.571
*http://www.tnb.com.my/tnb/residential/pricing-and-tariff/tariff-rates.html
Due Date 25/9/2014
9/10/2014
FCT1033 Lab 11 Sept 2014
Copy, Compile and Run the following C++ program. What is the output when input are:-
Draw flowchart for the program above
1.00
1.20
1.30
1.35
1.39
#include cstdlib <--pls check="" line="" span="" this="">--pls>
#include iostream <- span=""><--pls check="" line="" span="" this="">--pls>->
using namespace std;
int main(int argc, char *argv[])
{
int sen50, sen20, sen10, sen5, sen1;
int intRM;
double RM;
cout<<"Sistem Penukaran Duit Syiling \n Sila masukkan jumlah
wang anda:\n";
cin>>RM;
intRM=int(RM*100);
// tukar Ringgit kepada sen
sen50=intRM/50;
// dapatkan jumlah sen50
intRM = intRM%50; // dapatkan lebihan dari sen50
sen20=intRM/20;
// dapatkan jumlah sen20
intRM = intRM%20;
// dapatkan lebihan dari sen20
sen10=intRM/10;
// dapatkan jumlah sen10
intRM = intRM%10;
// dapatkan lebihan dari sen10
sen5=intRM/5;
// dapatkan jumlah sen5
sen1 = intRM%5;
// dapatkan lebihan dari sen5
cout<<" Bilangan duit syiling yang anda perolehi adalah :
";
cout<<" 50 Sen:"<
cout<<" 20 Sen:"<
cout<<" 10 Sen:"<
cout<<" 5 Sen:"<
cout<<" 1 Sen:"<
system("PAUSE");
return EXIT_SUCCESS;
}
Draw flowchart for the program above
9/07/2014
FCT1033 Selectively
1.Write
a program to input an integer. If an input is positive (0 and above) print “
Positive” otherwise print “Negative”.
2.Write
a program to input an integer. If an input is even print “Even” otherwise print
“Odd”.
3.Write
a program to input an integer. State whether your input is Positive or
Negative; Odd or Even.
4.Suppose
you want to associate noise loudness measured in desibles with the effect of the
noise. The Following table shows the relationship between noise levels and
human perceptions of noise.
Loudness in Decibles (db)
|
Perception
|
50 or lower
|
Quite
|
51-70
|
intrusive
|
71-79
|
Annoying
|
91-110
|
Very Annoying
|
Above 110
|
Uncomfortable
|
5.
A student’s letter grade is calculated according to the following schedule:
Marks
|
Grade
|
Marks
|
Grade
|
80-100
|
A
|
35-39
|
C-
|
70-79
|
A-
|
30-34
|
D+
|
64-69
|
B+
|
25-29
|
D
|
58-63
|
B
|
0-24
|
E
|
52-57
|
B-
|
||
46-51
|
C+
|
||
40-45
|
C
|
||
6.
Write an algorithm (Flowchart and Pseudocode) that accepts a
student’s numerical grade, converts the numerical grade to an equivalent letter
grade, and displays the letter grade.
CPA
|
Status
|
2.00<=CPA<=4.00
|
Satisfactory
|
1.70<=CPA<2 .00="" o:p="">2>
|
Conditional
CPA <1 .70="" o:p="">1>
Failed (Terminated)
7. An electric supply company charges
the following rates for its customers:-
No. of unit consumed Charges/unit (RM)
1-200 2.50
201 - 500 3.50
over 501 5.00
No. of unit consumed Charges/unit (RM)
1-200 2.50
201 - 500 3.50
over 501 5.00
If the consumer pays his bill within 15
days from the bill date, 10% discount is given
. If he makes the payment after 15 days from the bill date, 5% surcharge is levied. Draw a flowchart to calculated the net amount of the bill for each consumer and print it.
. If he makes the payment after 15 days from the bill date, 5% surcharge is levied. Draw a flowchart to calculated the net amount of the bill for each consumer and print it.
8. SATU Terengganu charges the following
rates for its customer:-
JADUAL PERKIRAAN KOD TARIF BEKALAN AIR
Enakmen PA. 51 Fasal 16 (UPEN.TR.5/115, DUN. TR. 15/25 SK.1)
MULAI 1 MAC 1997
Enakmen PA. 51 Fasal 16 (UPEN.TR.5/115, DUN. TR. 15/25 SK.1)
MULAI 1 MAC 1997
Kod
|
Jenis
Bacaan |
Penggunaan
|
Caj
Minima (RM) |
|
Kuantiti M3
(Meter Padu) |
Caj
Setiap M3 |
|||
10
|
Rumahtangga
|
0 - 20.00
|
RM0.42
|
RM4.00 sebulan
|
20.1 - 40.00
|
RM0.65
|
|||
40.1 - 60.00
|
RM0.90
|
|||
60.1 ke atas
|
RM1.00
|
|||
Draw a flowchart to calculated the net
amount of the bill for each consumer and print it.
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. ...
-
1.TOPUP Cepat Susut Jika anda merasa topup prepaid anda cepat susut walaupun tak banyak call- ada baiknya anda semak log call/sms/content ...
-
Section 8 The String Class 8.1 Suppose that s1 , s2 , s3 , and s4 are four strings, given as follows: String s1 = ...
-
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...













