Question: Write Java programs for the following 1 . declare integer variables hr , min and sec for hours, minutes and seconds respectively. assign 3 4

Write Java programs for the following
1. declare integer variables hr, min and sec for hours, minutes and seconds respectively. assign 3456 to sec. calculate the number of minutes and hours in 3456 seconds.
2. explain the order of arithmetic operations in java. (This is not a coding question.)
3. if height is 172 cm and weight is 68kg find the bmi
(hint bmi = weight in kg /(height in meters* height in meters)
4. find the value of x(y +2/z) where x =4, y =5.5 and z =.1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!