I need for part 4(invidiual programming) the code attached goes with question 1-8 but i had a error within it
IV. Individual Programming: Use the project WK4Class for both the problems below. Simply add the Java files to this project. You can consult your team members for completing the problems. Submit the java files only. Do not zip. Due Date: Thurs, Feb 11, 11p Show your completed code to instructor in class. 1. Convert your Student design in Part II to a Java class (Student.java). You do not need to check for invalid values. 2. By following the guided questions in Part II, design a class for Debit Card. Then convert the design to a Java class (DebitCard.java). You do not need to check for invalid values. 3. Add code to test the methods of the classes in the main method of the project. Refer to Section III, 25- Q7. Page 5 o 6 Object-Oriented Programming Concepti implementing Classes Spring 2001 II. How to implement a Java Claus? (20 min) A simple class can have one property and a few method that manipulate that property Property in the lava class is called an instance variable and the methods are called Instance methods. Instance variables are general private so that other classes cannot modify them directly. Instance methods are generally publica other classes interact with the objects of the class via methods. You will learn more about public private in the coming weeks Create a new project "WkClass". Keep the file that has the main method. Add another lava Classfile Product.java which should not have any main method) with the following coder public class Product private double price public double getPrice return price: 1 public void set Price[double pl { price: 1 1 1. Draw the UML diagram of the Product class in the space above. 2. What is the Instance variable of the Product cass? 2. Which one sa mutator method of the Product class? How did you identify it? 4. Which one is an accessor method of the Product class? How did you identity ? In the file that has the main method, add the following code to create an object pl from the Product class Product pl = new Product'); pl.setPrice[20.00): 5. Print the object p1. Don't worry about how to fix the output yet. What does t print? MacBook Pro public class test { 11 12 13 14 public static void main(String[] args) { 16 17 int i= 0; Product pl = new Product(); System.out.println(p1); System.out.println(p1.getPrice); if(pl. s 117 System.out.println("Price must be postive"); 19 21 22 23 24 25 27 Product p2 = new Product(); p2.setPrice(10.00); System.out.println(p2.getPcice); I if(p2.0) System.out.println("Price must be postive"); else { returop2: 29 30 31 33 34 35 } Variables Breakpoints x Name Wkland2 (run) #5 running... IX (more...) 29:34 INS Unix (LF)