Quiz 02
1. Declare an integer variable named pennies that is initialized to 212. Write a statement that will determine how many dollars are in that many pennies.2. Write a method named DrawTriangle that takes 6 parameters: a Graphics object named g, a Pen object named pen, an x and y coordinate (each of type integer) that determines the top point of the triangle, an integer width, and an integer height. Write the body of the DrawTriangle method that will draw a triangle using the Graphics object g, the Pen object pen, as well as the other parameters to the method.