Question: java Use the code below to complete the tasks described below: class subject private String sub private int marks: private double average; public subject sub

 java Use the code below to complete the tasks described below:java

Use the code below to complete the tasks described below: class subject private String sub private int marks: private double average; public subject sub - "Physics": marks = 60; average - 79.5; 3 . PC3.5: Create a public and a private static variable in the class below and assign the value 15 and 25 respectively PC3.4: Create a static method called change with one parameter that will assign the value for the testi variable PC3.7: Create a no parameterized constructor that initialize the instance variables as follows: sub-"Physics"; marks - 60: average = 79.5; Create a method that displays "pass" if the average value of the calling object is 60 or more and displays "fail" otherwise class subject private String sub; private int marks: private double average

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!