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:

* * * * * * * *

View Answers

Related Tutorials/Questions & Answers: