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="">

Conditional
CPA <1 .70="" o:p="">
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

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.


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
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.

No comments:

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.  ...