package com.java.runner; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import com.java.model.StudentRecord; public class Runner { public static void main(String[] args) { StudentRecord erlynRecord = new StudentRecord(); StudentRecord erickRecord = new StudentRecord(); erlynRecord.setName("Erlyn"); erlynRecord.setAddress("Taguig"); erlynRecord.setAge(20); erlynRecord.setMathGrade(85.3); erlynRecord.setScienceGrade(82.2); erlynRecord.setEnglishGrade(78.6); System.out.println("Name: " + erlynRecord.getName()); System.out.println("Address: " + erlynRecord.getAddress()); System.out.println("Age: " + erlynRecord.getAge()); System.out.println("Math Grade: " + erlynRecord.getMathGrade()); System.out.println("Science Grade: " + erlynRecord.getScienceGrade()); System.out.println("English Grade: " + erlynRecord.getEnglishGrade()); System.out.println("Average Grade: " + erlynRecord.getAverage()); erickRecord.setName("Erick"); erickRecord.setAddress("Manila"); erickRecord.setAge(20); erickRecord.setMathGrade(85); erickRecord.setScienceGrade(82); erickRecord.setEnglishGrade(78); System.out.println("Name: " + erickRecord.getName()); System.out.println("Address: " + erickRecord.getAddress()); System.out.println("Age: " + erickRecord.getAge()); System.out.println("Math Grade: " + erickRecord.getMathGrade()); System.out.println("Science Grade: " + erickRecord.getScienceGrade()); System.out.println("English Grade: " + erickRecord.getEnglishGrade()); System.out.println("Average Grade: " + erickRecord.getAverage()); System.out.println("Student Count: " + StudentRecord.getStudentCount()); } } THIS IS THE STUDENT RECORD CODE Submit the following materials in relation to the StudentRecord java project that we have been doing. The following processes must be included: 1. Add a new record 2. Update a record 3. Print a report
package com.java.runner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import com.java.model.StudentRecord;
public class Runner {
public static void main(String[] args) {
StudentRecord erlynRecord = new StudentRecord();
StudentRecord erickRecord = new StudentRecord();
erlynRecord.setName("Erlyn");
erlynRecord.setAddress("Taguig");
erlynRecord.setAge(20);
erlynRecord.setMathGrade(85.3);
erlynRecord.setScienceGrade(82.2);
erlynRecord.setEnglishGrade(78.6);
System.out.println("Name: " + erlynRecord.getName());
System.out.println("Address: " + erlynRecord.getAddress());
System.out.println("Age: " + erlynRecord.getAge());
System.out.println("Math Grade: " + erlynRecord.getMathGrade());
System.out.println("Science Grade: " + erlynRecord.getScienceGrade());
System.out.println("English Grade: " + erlynRecord.getEnglishGrade());
System.out.println("Average Grade: " + erlynRecord.getAverage());
erickRecord.setName("Erick");
erickRecord.setAddress("Manila");
erickRecord.setAge(20);
erickRecord.setMathGrade(85);
erickRecord.setScienceGrade(82);
erickRecord.setEnglishGrade(78);
System.out.println("Name: " + erickRecord.getName());
System.out.println("Address: " + erickRecord.getAddress());
System.out.println("Age: " + erickRecord.getAge());
System.out.println("Math Grade: " + erickRecord.getMathGrade());
System.out.println("Science Grade: " + erickRecord.getScienceGrade());
System.out.println("English Grade: " + erickRecord.getEnglishGrade());
System.out.println("Average Grade: " + erickRecord.getAverage());
System.out.println("Student Count: " + StudentRecord.getStudentCount());
}
}
THIS IS THE STUDENT RECORD CODE
Submit the following materials in relation to the StudentRecord java project that we have been doing. The following processes must be included:
1. Add a new record
2. Update a record
3. Print a report
Trending now
This is a popular solution!
Step by step
Solved in 2 steps