Write a Java program with a class named Introduction that prints: 1. Your name. 2. A blank line. 3. Your favorite short poem (or first several lines of your favorite poem). This must be at least three lines long and no more than seven lines long. 4. The author of the poem, indented four spaces and preceded by two hyphens. If you don't know who the author was, use Anonymous. 5. A blank line. 6. Your age in years. 7. Your moderate intensity exercise heart rate, calculated by subtracting your age from 220, then multiplying that result by 0.60. Have Java do the calculation. You might get a lot of decimal places as in the following example. That's OK. 8. The result of multiplying 12345679 times your favorite one-digit number times 9 -- have Java do the calculation. Don't choose zero as your one-digit number. Do not put the digit 8 in 12345679. Here is a sample of what my output might look like. Your output must not be identical to this output. I put in question marks for the result of step 8, because I do not want to ruin the surprise for you. My name is David Eisenberg. Beneath these high cathedral stairs Lie the remains of Susan Pares. Her name was wiggs; it was not Pares, But Pares was put to rhyme with stairs. --Edward Lear 66 92.39999999999999 ܕܕܕܕܕ The name of your Java class must be Introduction. When you finish, upload the Introduction.java file.
Write a Java program with a class named Introduction that prints: 1. Your name. 2. A blank line. 3. Your favorite short poem (or first several lines of your favorite poem). This must be at least three lines long and no more than seven lines long. 4. The author of the poem, indented four spaces and preceded by two hyphens. If you don't know who the author was, use Anonymous. 5. A blank line. 6. Your age in years. 7. Your moderate intensity exercise heart rate, calculated by subtracting your age from 220, then multiplying that result by 0.60. Have Java do the calculation. You might get a lot of decimal places as in the following example. That's OK. 8. The result of multiplying 12345679 times your favorite one-digit number times 9 -- have Java do the calculation. Don't choose zero as your one-digit number. Do not put the digit 8 in 12345679. Here is a sample of what my output might look like. Your output must not be identical to this output. I put in question marks for the result of step 8, because I do not want to ruin the surprise for you. My name is David Eisenberg. Beneath these high cathedral stairs Lie the remains of Susan Pares. Her name was wiggs; it was not Pares, But Pares was put to rhyme with stairs. --Edward Lear 66 92.39999999999999 ܕܕܕܕܕ The name of your Java class must be Introduction. When you finish, upload the Introduction.java file.
Chapter2: Using Data
Section: Chapter Questions
Problem 1GZ
Related questions
Question
Please program this Correctly
![Write a Java program with a class named Introduction that prints:
1. Your name.
2. A blank line.
3. Your favorite short poem (or first several lines of your favorite poem). This must be at least three lines long and no
more than seven lines long.
4. The author of the poem, indented four spaces and preceded by two hyphens. If you don't know who the author was,
use Anonymous.
5. A blank line.
6. Your age in years.
7. Your moderate intensity exercise heart rate, calculated by subtracting your age from 220, then multiplying that
result by 0.60. Have Java do the calculation. You might get a lot of decimal places as in the following example. That's
OK.
8. The result of multiplying 12345679 times your favorite one-digit number times 9 -- have Java do the calculation.
Don't choose zero as your one-digit number. Do not put the digit 8 in 12345679.
Here is a sample of what my output might look like. Your output must not be identical to this output. I put in question
marks for the result of step 8, because I do not want to ruin the surprise for you.
My name is David Eisenberg.
Beneath these high cathedral stairs
Lie the remains of Susan Pares.
Her name was wiggs; it was not Pares,
But Pares was put to rhyme with stairs.
--Edward Lear
66
92.39999999999999
ܕܕܕܕܕ
The name of your Java class must be Introduction.
When you finish, upload the Introduction.java file.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F710ca181-982f-4144-97b6-9867655c63b5%2Fb7a7bbcc-7bef-4cfc-8875-47293dcc0c5e%2Fsmkc32b_processed.png&w=3840&q=75)
Transcribed Image Text:Write a Java program with a class named Introduction that prints:
1. Your name.
2. A blank line.
3. Your favorite short poem (or first several lines of your favorite poem). This must be at least three lines long and no
more than seven lines long.
4. The author of the poem, indented four spaces and preceded by two hyphens. If you don't know who the author was,
use Anonymous.
5. A blank line.
6. Your age in years.
7. Your moderate intensity exercise heart rate, calculated by subtracting your age from 220, then multiplying that
result by 0.60. Have Java do the calculation. You might get a lot of decimal places as in the following example. That's
OK.
8. The result of multiplying 12345679 times your favorite one-digit number times 9 -- have Java do the calculation.
Don't choose zero as your one-digit number. Do not put the digit 8 in 12345679.
Here is a sample of what my output might look like. Your output must not be identical to this output. I put in question
marks for the result of step 8, because I do not want to ruin the surprise for you.
My name is David Eisenberg.
Beneath these high cathedral stairs
Lie the remains of Susan Pares.
Her name was wiggs; it was not Pares,
But Pares was put to rhyme with stairs.
--Edward Lear
66
92.39999999999999
ܕܕܕܕܕ
The name of your Java class must be Introduction.
When you finish, upload the Introduction.java file.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT