Due: Wednesday, August 29
Goal: Declare and use variables of different data types
Here is the definition of a variable licks that is a double and stores the number 0:
double licks = 0;
Write a Java program that defines variables of the appropriate data type and set them to the following values:
Pretend that it takes 4.4 * (PI * radius * radius) licks to get to the center of a tootsie pop. Have your program use this formula with your variables to output:
How many licks does it take to get to the center of a tootsie pop? 221.1616
Show your program to your instructor or email it to firstname.lastname@example.org by the end of the day for full credit.