jumbe
java
0 Answer(s)      4 years and 11 months ago
Posted in : Java Beginners

1.Design then implement a Java program that defines and initializes the coefficients of a linear equation 2x + 4.5 = 0. Also, make your program compute and display the solution of the equation

2.Design then implement a Java program that defines a constant PI = 3.14159 then use that constant to calculate the area of a circle with radius = 3.

3.Design then implement a Java program that requests the user to input the radius of a sphere (or you can initialize it to a value), then calculates and prints the surface area of the sphere and its volume using the formulae: A = 4 Ã?â?¬ r2, V = 4 3 Ã?â?¬ r3 Where: A = area, V = volume, r = radius of the sphere and Ã?â?¬ = 3.1416.

4.One way to measure the amount of energy that is expended during exercise is to use metabolic equivalents (MET). Here are some METS for various activities:

Running at 9.5 km/h : 10 METS Basketball : 8 METS Sleeping : 1 MET

The number of calories burned per minute may be estimated using the formula:

Calories/Minute = 0.0175 x MET x Weight (in kg)

Write a program that calculates and outputs the total number of calories burned for a 70 kg person who runs 6 MPH for 30 minutes, plays basketball for 30 minutes, and then sleeps for 6 hours.

5.Design then implement a program to draw a square-like shape that has its 4 sides composed of 6 asterisks (*) in length as follows:

* * * * * * * *

Related Tutorials/Questions & Answers:
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  what is java reflection
java
java  is java open source
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
java  write a java program using filenotfoundexception
Java
Java  how to draw class diagrams in java
java
java   difference between class and interface
java
java  why multiple inheritance is not possible in java
java
java  explain object oriented concept in java
java
java  is java purely object oriented language
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  what are JAVA applications development tools
java
java  how use java method
java
java  send me java interview questions
java
java  write a program in java to acess the email
java
java  Write a java code to print "ABABBABCABABBA
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
Java
Java  how to do java in command prompt
java
java  Does java allows multiline comments
Tutorials