You are required to provide (i) Algorithm (Flowchart or Pseudocode) and (ii) Java program for each of the following problems.
1. Develop a program to input height and length of a right triangle and calculate and print the area of a right triangle.
Area of right triangle = (height x length) /2
2. Write a java program to input three integers and print the smallest and largest.
3. An electric supply company charges the following rates for its customers:-
No. of unit consumed Charges/unit (RM)
1 - 200 0.218
201 - 300 0.334
>= 301 0.516
Read unit consumed and calculates the net amount of the bill for each consumer and print it.
Due date : 27/10/2014
Subscribe to:
Post Comments (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. ...

-
Latihan MS Word dengan elemen-elemen:- image, word art, table, shape dan word formatting (font,size,bold, italic,underline)
-
1.TOPUP Cepat Susut Jika anda merasa topup prepaid anda cepat susut walaupun tak banyak call- ada baiknya anda semak log call/sms/content ...
-
Contoh soalan untuk test 1 adalah seperti berikut (soalan dan 'marking' bagi semester sebelum ini)
No comments:
Post a Comment