10/08/2012
10/07/2012
BCS1233 AD Assignment 1
1. Define the following terms:-
1.1Algorithm
1.2Flow Chart
1.3Pseudocode
2. There are several types of flowchart, briefly explain each of them.
3,Give three benefits of flowchart.
4.What is the limitation of flowchart.
5.Write an algorithm (Flowchart and Pseudocode) to input temperature in Fahrenheit and output the corresponding temperature in Centigrade. The formula for conversion is as follows.
C= 5/9 x (F - 32)
6. A student’s letter grade is
calculated according to the following schedule:
|
Numerical
grade
|
Letter
grade
|
|
90-100
|
A
|
|
80-89
|
B
|
|
70-79
|
C
|
|
60-69
|
D
|
|
0-59
|
F
|
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.
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.
10/06/2012
BCS2233 OOP Selection
1. Read age, if age bigger than or equal to 21 then print "Eligible to vote."
2. 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
2. 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
10/03/2012
DCT1033 Function
Rewrite the following program, run and show it output
Write function declaration for the following function:
-
Testing whether a number is even, and returning true if it is.
-
Printing a message a specified number of times.
10/02/2012
10/01/2012
BCS1233 AD : Algorithm Exercise (SATU)
Preparing an algorithm before writing a computer program is a good practice - especially when the problem is complicated. Let consider the following SATU tariff. This is how SATU charged their customer for the every volume of water used. Can you prepare the algorithm?
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
reference
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
reference
| 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 | |||
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. ...



