A Cu-Ni alloy is slowly cooled to 1250°C. Both liquid and solid coexist. If the amount…

Hello,
Can you please error check my javascript? It should do the
following:
Write a program that uses a class for storing student data.
Build the class using the given information.
The data should include the student’s ID number; grades on exams
1, 2, and 3; and average grade.
Use appropriate assessor and mutator methods for the grades (new
grades should be passed as parameters).
Use a mutator method for changing the student ID.
Use another method to calculate the average grade.
Write a static method that will accept the two students as
parameters and report which one has the highest average grade.
Test all constructors and methods using a separate driver
class.
Here is my code so far:
public class Student
{
private int stuID;
private int grade1;
private int grade2;
private int grade3;
private int gradeAvg;
  
Student()
{
stuID=1;
grade1=90;
grade2=100;
grade3=98;
}
Student(int sID,int sgrade1,int sgrade2,int sgrade3)
{
stuID=sID;
grade1=sgrade1;
grade2=sgrade2;
grade3=sgrade3;
}
  
  
public int getStuID()
{
return stuID;
}
public void setStuID(int stuID)
{
this.stuID = stuID;
}
  
  
public int getGrade1()
{
return grade1;
}
public void setGrade1(int grade1)
{
this.grade1 = grade1;
}
  
  
public int getGrade2()
{
return grade2;
}
public void setGrade2(int grade2)
{
this.grade2 = grade2;
}
  
  
public int getGrade3()
{
return grade3;
}
public void setGrade3(int grade3)
{
this.grade3 = grade3;
}
  
  
int calculateAvgGrade()
{
gradeAvg=((grade1+grade2+grade3)/3);
return gradeAvg;
}
  
  
public static int HighGrade(Student s1, Student s2)
{
return(Math.max(s1.gradeAvg,s2.gradeAvg));
}
  
  
  
public static int HighGradeStudent(Student s1, Student s2)
{
  
if(s1.gradeAvgs2.gradeAvg)
{
return(s1.stuID);
}
else
{
return(s2.stuID);
}
}
}
class StudentDemo
{
public static void main(String args[])
{
Student s1 = new Student();
System.out.println(“Data of Student 1”);
System.out.println(“Student ID is: “+s1.getStuID());
System.out.println(“Student grade1 is: “+s1.getGrade1());
System.out.println(“Student grade2 is: “+s1.getGrade2());
System.out.println(“Student grade3 is: “+s1.getGrade3());
System.out.println(“Student1 Average grade is:
“+s1.calculateAvgGrade());
  
Student s2 = new Student(2,80,90,100);
System.out.println(“nData of Student 2”);
System.out.println(“Student ID is: “+s2.getStuID());
System.out.println(“Student grade1 is: “+s2.getGrade1());
System.out.println(“Student grade2 is: “+s2.getGrade2());
System.out.println(“Student grade3 is: “+s2.getGrade3());
System.out.println(“Student2 Average grade is:
“+s2.calculateAvgGrade());
  
Student s3 = new Student();
System.out.println(“nHighest average grade is:
“+s3.HighGrade(s1,s2));
System.out.println(“Student ID who has got Highest
grade:”+s3.HighGradeStudent(s1,s2));
  
  
}
}
Error: Main method not found in class Student, please define the
main method as:

public static void main(String[] args)

or a JavaFX application class must extend
javafx.application.Application

Command exited with non-zero status 1

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more