9/13/2017
BCS1223 Lab 14 Sept 2017
Review : Objects and Classes
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)
2. Write a java program that reads the height of a cube and computes its volume and parameter using the following formulas:-
Volume = height x height x height
Perimeter = 4 x height
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. ...
-
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...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment