7/15/2013
DCT 2112 Programming Practical. Flowchart Exercise
Write an algorithm for a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values, not counting zeros. Your program ends with the input 0. Display the average as a floating-point number. (For example, if you entered 1, 2, and 0, the average should be 1.5.)
*Flowchart di atas masih lagi belum memenuhi kehendak soalan supaya cetak "average" bagi semua nilai yang di masukkan.
7/11/2013
DCT 2112 Programming Practical - LAB 10/7/13 (solution)
Solution for DCT 2112 Programming Practical - LAB 10/7/13
![]() |
| Question 1 |
![]() |
| Question 3 |
![]() |
| Question 4 |
![]() |
| Write a program that read length and width of a rectangle and output it perimeter and area |
7/10/2013
DCT1083 Programming Fundamentals : LAB 1
- Programming is a process of problem solving
- Problem solving techniques:-
- Analyze the problem & Outline the problem requirenment
- Design steps (algorithm) to solve the problem
- Write a program
Exercise 2
Write a program to find the area of a rectangle. The area of the rectangle is given by the following formula:
area = length x widthExercise 3
Write program that calculates mileage reimbursement for a salesperson at a rate of RM 0.65 per kilometer.
Your program should interact with the user in this manner :
Enter beginning odometer reading : 13505.5
Enter ending odometer reading :13810.6
You traveled 305.4 km
Your reimbursement is RM 198.51
7/09/2013
DCT 2112 Programming Practical - LAB 10/7/13
Write an algorithm (Flowchart) for the following problems:-
1. Write program that calculates mileage reimbursement for a salesperson at a rate of RM 0.65 per kilometer. Your program should interact with the user in this manner :
7/08/2013
DCT 2112 Programming Practical
DCT 2112 Programming Practical ialah subjek yang akan mengasah kemahiran pelajar dalam pengaturcaraan. Berdasarkan suatu masalah - pelajar di kehendaki membina algorithma dan seterusnya menulis aturcara java.
Dalam subjek ini - pelajar akan di minta membuat persembahan (presentation) terhadap algorithma dan aturcara yang telah di bina (secara berkumpulan).
Pelajar di minta memberi perhatian yang lebih pada subjek DCT 1093 Object Oriented Programming (oleh Puan Izzah Inani) kerana bahasa java akan di ajar di sana.
Bahan-bahan pengajaran adalah seperti berikut:-
Bagi menulis pseudocode - pelajar boleh menggunakan mana-mana word processing seperti microsoft, manakala untuk membina flowchart - microsoft visio adalah di cadangkan.
Bagi menulis aturcara java - pelajar boleh menggunakan dua software iaitu: 1) JDK (java development Kit) 2) Editor seperti jcreator atau Netbeans. Jcreator Version standard boleh di download dari link berikut, manakala untuk version professional boleh di dapati dari saya.
Dalam subjek ini - pelajar akan di minta membuat persembahan (presentation) terhadap algorithma dan aturcara yang telah di bina (secara berkumpulan).
Pelajar di minta memberi perhatian yang lebih pada subjek DCT 1093 Object Oriented Programming (oleh Puan Izzah Inani) kerana bahasa java akan di ajar di sana.
Bahan-bahan pengajaran adalah seperti berikut:-
2. Nota Kuliah (slide power point)
Sila guna bahan rujukan bagi subjek DCT
1093 Object Oriented Programming atau buku berikut :-
Y. Daniel Liang,
Introduction to Java™ Programming, Brief Version, 8 Edition. 2011.
Pearson Education.
Chapter 1 Introduction to Computers, Programs, and Java (download)
Chapter 2 Elementary Programming (download)
Chapter 3 Selections (download)
Chapter 4 Loops (download)
Chapter 5 Methods (download)
Chapter 6 Arrays (download)
3. PerisianChapter 2 Elementary Programming (download)
Chapter 3 Selections (download)
Chapter 4 Loops (download)
Chapter 5 Methods (download)
Chapter 6 Arrays (download)
Bagi menulis pseudocode - pelajar boleh menggunakan mana-mana word processing seperti microsoft, manakala untuk membina flowchart - microsoft visio adalah di cadangkan.
Bagi menulis aturcara java - pelajar boleh menggunakan dua software iaitu: 1) JDK (java development Kit) 2) Editor seperti jcreator atau Netbeans. Jcreator Version standard boleh di download dari link berikut, manakala untuk version professional boleh di dapati dari saya.
7/06/2013
DCT1083 Programming Fundamentals
Assalamualaikum. Saya akan mengendalikan subjek DCT1083 Programming Fundamentals bagi pelajar Diploma in Computer Networking. Bahan-bahan pengajaran adalah seperti di berikut:-
4 Perisian. Subjek ini akan menggunakan perisian Bloodshed Dev-C++.
2. Nota Kuliah (slide power point)
- Chapter 0 - An Overview of Computer and Programming Language
- Chapter 1 - Basic Elements of C++
- Chapter 2 - Input/Output
- Chapter 3 - Control Structures 1 (selection)
- Chapter 4 - Control Structures 2 (looping)
- Chapter 5 - User Defined Functions
- Chapter 6 - Arrays ( + file input and file output, + Strings)
- Chapter 9 - Pointers
- Topic 8 - Managing Memory
Sila download dan install dari http://www.bloodshed.net/dev/devcpp.html
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. ...







