I have tried to figure this out and am having major problems with math pow. Any help would be great...

This project deals with reading input from the user, storing the input into variables and displaying those variables. This program is an introductory project into the basic data types of int, double and the String class.

The following identifiers will be used:

int diameter, height;

double radius;

double circumference, areaOfCircle, cylVolume;

String name;

You will utilize the Scanner class plus the print() and println() methods of

System.out. You will also define a double named constant whose value is 3.1415926.

Prompt the use for their name and using the nextLine() method, read the name of the

user.

Once the name of the user has been read, greet the user. Proceed to get the diameter and

height of some aluminum can (cylinder) using the nextInt() method. You MUST

read the data in this order so that the automatic grading program supplies data in the

correct order.

Calculate the circumference of the base of the can, the area of the base (using the pow() method of the Math class) and the volume of the cylinder. Display the radius, diameter, circumference, area of the base and volume of the cylinder.

Your output should resemble (user provided values in bold):

Enter your name: Chalandria

Hello, Chalandria. You have two more answers to provide.

Enter the integer diameter of a cylinder: 5

Enter the integer height of the cylinder: 8

The radius is 2.5.

The diameter is 5.

The height is 8.

The circumference is 15.707963.

The area of the base is 19.63495375.

The volume of the cylinder is 157.07963.