Give both Structured and Object Oriented solution for the following problems.
1. Write a java program that reads the length and height of a rectangle and computes its area and parameter using the following formulas:-
Area = length x height
Perimeter = 2 x (length + height)
Structured: https://drive.google.com/file/d/0BxDLK8tlx2V1dEo0MGRRY3FLcmM/view?usp=sharing
2. Write a java program that reads the height of a cube and computes its area and parameter using the following formulas:-
Area = height2
Perimeter = 4 x height
Structured: https://drive.google.com/file/d/0BxDLK8tlx2V1MzM4SERjQkctLUk/view?usp=sharing
3. Write a program that reads in the radius and length of a cylinder and computes its volume using the following formulas:
Area = radius * radius * 3.14
Volume = area * length
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