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.
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. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
Latihan MS Word dengan elemen-elemen:- image, word art, table, shape dan word formatting (font,size,bold, italic,underline)
No comments:
Post a Comment