I have to create my own logo, but I'll show you the rubric first.
50 Points
The logo will be created in a separate class file called MyLogo. The first step is to create a file with the class definition, class variables, and default constructor.
Define three variables, two of type integer to hold the x and y positions for the logo and a Graphics variable that holds where the logo will be drawn on.
Required Constructors:
· Default constructor will initialize the Graphics variable to null and it will set the x and y values to 0.
· Secondary constructor that will take three inputs for the three class variables.
· Another secondary constructor that only takes as input a Graphics variable. The x and y variables should be set to 0.
60 Points
Create a method named toString(). This should take no inputs and should return a String that describes the logo including the x and y coordinates. Format and label it so it the output is understandable.
70 Points
Create a drawMyLogo() method that will take no inputs. This method will draw your logo using the Graphics variable defined for the class. You can draw any kind of logo you want but maximum size is 100 x 100 pixels and MUST use the x and y position variables defined for the class.
80 Points
Now create a static method that does not return anything. A static method does not use any class variables!
Name the method drawFriscoCorpLogo and have it draw a smiley face (or other simple picture of your choice) in the top left corner of the window. The method will take input in the form of a Graphics variable.
90 Points
Write a setXY mutator method that takes two integer inputs and modifies the x and y coordinates for the class.
100 Points
Up to you, some ideas:
· Use the setXY method and a loop to draw multiple logos spaced at regular intervals across the window – make sure not to draw beyond the window edge
· Implement a loop that redraws the screen with a logo in a different place so that it moves across the screen (ie animate the logo so it moves)
Here's my code with errors, I just need help fixing it.
Code:import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.awt.Color.*;
public class MyLogoLab extends JPanel {
private int xLogo;
private int yLogo;
private String g;
}
public class MyLogoOne(String input) {
String g = null;
int xLogo = 0;
int yLogo = 0;
System.out.println(" + g + ");
System.out.println(" + xLogo + ");
System.out.println(" + yLogo + ");
}
public class toString() {
return xLogo();
return yLogo();
}
// public void paintComponent(Graphics g) {
// super.paintComponent(g);
// this.setBackground(Color.GREEN);
// g.setColor(Color.red);
// g.fillRectangle(0, 0, 100, 100);
// }
Tell what's wrong, and how can I fix it.

