Assignment 111
You are required to provide:-
(i)
Algorithm (Flowchart or Pseudo
code) and
(ii) Java program for each of
the following problems.
1. 1 1.(Converting feet into meters)
Write a program that reads a number in feet, converts it to meters, and
displays the result. One foot is 0.305 meters.
1. 2 2.(Finding
the largest) Write a program that input two integers and find the largest.
1. 3 3.SATU Terengganu charges the following rates for its customer:-
Penggunaan
|
Caj
Minima (RM) |
|
Kuantiti M3
(Meter Padu) |
Caj
Setiap M3 |
|
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
|
Input the amount of water used and
calculate the net amount for a customer.
Due date : 9/3/2015 (2 Weeks)
No comments:
Post a Comment