10/12/2014

BCS2233 OOP Assignment 1

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.


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