Extend the example given in creating your own class to accommodate 2 more objects.

icon
Related questions
Question

Program 1: Extend the example given in creating your own class to accommodate 2 more objects. 

 

use java programming 

D "StudentRecordjava
D "Runnerjava
1 package com.java.runner;
2
3 import com.java.model.StudentRecord;
5 public class Runner {
public static void main(String[] args) {
StudentRecord myRecord = new StudentRecord();
7.
8
10
11
12
13
myRecord.setName ("Erick");
myRecord.setAddress ("Manila");
myRecord.setAge (20);
myRecord.setMathGrade (85.3);
myRecord.setScienceGrade(82.2);
myRecord.setEnglishGrade(78.6);
14
15
16
17
System.out.println("Name:
+myRecord.getName ())
Problems Javadoc Deciaration e Console
Transcribed Image Text:D "StudentRecordjava D "Runnerjava 1 package com.java.runner; 2 3 import com.java.model.StudentRecord; 5 public class Runner { public static void main(String[] args) { StudentRecord myRecord = new StudentRecord(); 7. 8 10 11 12 13 myRecord.setName ("Erick"); myRecord.setAddress ("Manila"); myRecord.setAge (20); myRecord.setMathGrade (85.3); myRecord.setScienceGrade(82.2); myRecord.setEnglishGrade(78.6); 14 15 16 17 System.out.println("Name: +myRecord.getName ()) Problems Javadoc Deciaration e Console
"StudentRecordjava "Runnerjava 1
StudentRecord myRecord = new StudentRecord();
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
myRecord.setName("Erick");
myRecord.setAddress ("Manila");
myRecord.setAge(20);
myRecord.setMathGrade (85.3);
myRecord.setScienceGrade(82.2);
myRecord.setEnglishGrade(78.6);
System.out.println("Name: " + myRecord.getName( ));
System.out.println("Address: " + myRecord.getAddress ());
System.out.println("Age: " + myRecord.getAge());
System.out.println("Math Grade:
System.out.println("Science Grade: " + myRecord.getScienceGrade());
System.out.println("English Grade:
myRecord.getMathGrade());
+ myRecord.getEnglishGrade());
System.out.println("Average Grade:
+ myRecord.getAverage());
Transcribed Image Text:"StudentRecordjava "Runnerjava 1 StudentRecord myRecord = new StudentRecord(); 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 myRecord.setName("Erick"); myRecord.setAddress ("Manila"); myRecord.setAge(20); myRecord.setMathGrade (85.3); myRecord.setScienceGrade(82.2); myRecord.setEnglishGrade(78.6); System.out.println("Name: " + myRecord.getName( )); System.out.println("Address: " + myRecord.getAddress ()); System.out.println("Age: " + myRecord.getAge()); System.out.println("Math Grade: System.out.println("Science Grade: " + myRecord.getScienceGrade()); System.out.println("English Grade: myRecord.getMathGrade()); + myRecord.getEnglishGrade()); System.out.println("Average Grade: + myRecord.getAverage());
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer