Question: Programming Assignment M2 Friday, April 14, 2017 at 11 To make a pizza Use Eclipse for this project graphical depiction of a pizza Creal You

 Programming Assignment M2 Friday, April 14, 2017 at 11 To make
a pizza Use Eclipse for this project graphical depiction of a pizza
Creal You will need the following classes (the classes themselves are given

Programming Assignment M2 Friday, April 14, 2017 at 11 To make a pizza Use Eclipse for this project graphical depiction of a pizza Creal You will need the following classes (the classes themselves are given to you, you must fill them with the right fields and methods) This will contain your main method a new Pizza object and a new JFrame object Here you will create You will add the Pizza object to the JFrame object and set the Frame object to visible (along with the other settings) This will contai n a public int xand a public int y This is used for the position of toppings on the screen The constructor should take in an x and a y and set the fields to the parameter values. o ToppingType This is an enum that contains the different types of toppings This is not a simple enum. It will contain fields and a constructor t must contain two fields A field for the Color of the topping. Use the data type from java.awt.Color A field for the size of the topping. Use an int Each topping is going to be drawn as a circle (or square, or rectangle, or any shape of your choosing) using the Color field and the size field. You may have to alter the size field (rename it or add more fields) to fully specify the size of your shape. It must contain a constructor The constructor will take in a Color and a size and set the appropriate fields You must have 3 enum values that each have their own Color and size o Topping This is a class that will hold the information for a topping on our pizza It will have the following fields Random object (from java.util.Random) o This will be used to scatter the toppings around o For example, we will use this to pick random locations on the pizza to place our toppings, like picking random locations for 10 pepperoni slices Two ints for topping boundary o One int will be the top left boundary that toppings can be placed o The other int will be the bottom right boundary that toppings can be placed Programming Assignment M2 Friday, April 14, 2017 at 11 To make a pizza Use Eclipse for this project graphical depiction of a pizza Creal You will need the following classes (the classes themselves are given to you, you must fill them with the right fields and methods) This will contain your main method a new Pizza object and a new JFrame object Here you will create You will add the Pizza object to the JFrame object and set the Frame object to visible (along with the other settings) This will contai n a public int xand a public int y This is used for the position of toppings on the screen The constructor should take in an x and a y and set the fields to the parameter values. o ToppingType This is an enum that contains the different types of toppings This is not a simple enum. It will contain fields and a constructor t must contain two fields A field for the Color of the topping. Use the data type from java.awt.Color A field for the size of the topping. Use an int Each topping is going to be drawn as a circle (or square, or rectangle, or any shape of your choosing) using the Color field and the size field. You may have to alter the size field (rename it or add more fields) to fully specify the size of your shape. It must contain a constructor The constructor will take in a Color and a size and set the appropriate fields You must have 3 enum values that each have their own Color and size o Topping This is a class that will hold the information for a topping on our pizza It will have the following fields Random object (from java.util.Random) o This will be used to scatter the toppings around o For example, we will use this to pick random locations on the pizza to place our toppings, like picking random locations for 10 pepperoni slices Two ints for topping boundary o One int will be the top left boundary that toppings can be placed o The other int will be the bottom right boundary that toppings can be placed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!