Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We're also trying to insert this picture to the applet. /** Poem Project *@author *verstion spring 2018 *CSci 1130 */ import java.awt.*; import Java.Applet.Applet import
We're also trying to insert this picture to the applet. /** Poem Project *@author *verstion spring 2018 *CSci 1130 */ import java.awt.*; import Java.Applet.Applet import java.awt.Graphics; import Java.awt.Image; import Java.awt.Colors; public class Poem extends Applet { public void init() { } public void paint(Graphics g) { g.drawstring (McKenna said; They are the food of the gods, 20,20); g.drawstring (Has been so for 10,000 years, more or less", 20,25); g.drawstring ("Consumed by shamans and a few demigods", 20,30); g.drawstring ("Til Laws made psilocybin illegal to possess,20,35); g.Color(Color.red); g.drawstring ("Its hard to profit from things we need not buy",20,40); g.drawstring ("Retail thefts are rising!", 20,45); g.drawstring ("Better be home if a package is dropped off at your door!" 20,50); g.drawstring ("Because when you get home from work one day, 20,55); g.Color(Color.green); g.drawstring ("Yuck! Gross! I won't eat that", 20,60); g.drawstring ("This food looks like a run over rat", 20,65); g.drawstring ("It's green and gross, kind of icky,", 20,70); g.Color(Color.yellow); g.drawstring ("It smells like a sewer and is really sticky",20,75); g.drawstring ("Nasty meat cooked half-way through", 20,80); g.drawstring ("I think my face is turning blue", 20,85); g.drawstring ("I think this bread is twelve years old.", 20,90); g.drawstring ("The fries aren't cooked, they're still cold!", 20,95) } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started