1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
jenyasd209 [6]
3 years ago
15

What is instance variable??​

Computers and Technology
1 answer:
azamat3 years ago
5 0

Explanation:

a distance variable includes a value and a dependency. includes a value and a dependency

You might be interested in
Public static Object[] question4(Student student1, Student student2)
Archy [21]

Answer:

Complete code is given below:

Explanation:

public static Object[] question4(Student student1, Student student2){

  /* For this exercise you will be using for loops to calculate various values.

  You will be making use of the following object references which are passed as arguments to this method:

  A Student object reference student1

  A Student object reference student2

  You will need to use various accessor methods of the Student class to complete this assignment.

  Additional variables that you will use have already been declared.

  1) Set the value of student1HighestGrade to the highest grade for student1

  2) Set the value of student2HighestGrade to the highest grade for student2

  3) Set the value of student1AverageGrade to the average grade for student1

  4) Set the value of student2AverageGrade to the average grade for student2

  5) Assign the bestHighGradeStudent object reference whichever student has the best high grade

  6) Assign the bestAverageGradeStudent object reference whichever student has the best average grade

  This program contains a main method that can be used to manually test your code by right-clicking Question4.java

  and selecting "Run File"    

  */

 

  int student1HighestGrade, student2HighestGrade;

  double student1AverageGrade, student2AverageGrade;

  Student bestAverageGradeStudent, bestHighGradeStudent;

 

  // Your code goes Here:

 

 

 

  //FINDING HIGHEST GRADE OF STUDENT 1

  student1HighestGrade = -1;   //initially set to minimum

  //iterating through all 8 grades

  for(int i = 0; i < 8; i++){

      //current highest grade is less than ith grade

      if(student1.getExamScore(i) > student1HighestGrade){

          //making ith grade as the highest grade

          student1HighestGrade = student1.getExamScore(i);

      }

  }

 

  //FINDING HIGHEST GRADE OF STUDENT 1

  student2HighestGrade = -1;   //initially set to minimum

  //iterating through all 8 grades

  for(int i = 0; i < 8; i++){

      //current highest grade is less than ith grade

      if(student2.getExamScore(i) > student2HighestGrade){

          //making ith grade as the highest grade

          student2HighestGrade = student2.getExamScore(i);

      }

  }

 

  //FINDING THE GRADE SUM OF STUDENT 1

  student1AverageGrade = 0;   //setting grade sum as 0 initially

  //iterating through all 8 grades

  for(int i = 0; i < 8; i++){

      //adding ith grade to tha total grade sum

      student1AverageGrade += student1.getExamScore(i);

  }

  //FINDING THE AVERAGE GRADE OF STUDENT 1

  student1AverageGrade /= 8;

 

 

  //FINDING THE GRADE SUM OF STUDENT 2

  student2AverageGrade = 0;   //setting grade sum as 0 initially

  //iterating through all 8 grades

  for(int i = 0; i < 8; i++){

      //adding ith grade to tha total grade sum

      student2AverageGrade += student2.getExamScore(i);

  }

  //FINDING THE AVERAGE GRADE OF STUDENT 2

  student2AverageGrade /= 8;

 

 

  //FINDING THE BEST HIGHEST GRADE STUDENT

  if(student1HighestGrade > student2HighestGrade){

      //student1's highest grade is greater than student2's highest grade

      //Best highest grade student is student1

      bestHighGradeStudent = student1;

  }

  else{

      //Best highest grade student is student2

      bestHighGradeStudent = student2;

  }

 

 

  //FINDING THE BEST AVERAGE GRADE STUDENT

  if(student1AverageGrade > student2AverageGrade){

      //student1's average grade is greater than student2's highest grade

      //Best average grade student is student1

      bestAverageGradeStudent = student1;

  }

  else{

      //Best average grade student is student2

      bestAverageGradeStudent = student2;

  }

 

 

 

  // Necessary for Unit Test

  return new Object[] {student1HighestGrade, student2HighestGrade, student1AverageGrade, student2AverageGrade, bestHighGradeStudent, bestAverageGradeStudent};

  }

5 0
3 years ago
Which of the following terms refers to the area of the hard drive used for virtual memory?
Andre45 [30]

Answer: C. Swap File

Explanation: Swap files provide some space for programs for the computer and virtual memory.

8 0
2 years ago
When is the POST process executed?
Olin [163]

Answer:

Below:

Explanation:

A power-on self-test (POST) is a process performed by firmware or software routines immediately after a computer or other digital electronic device is powered on.

Hope it helps.... Bro/Sis

It's Muska...  :)

3 0
3 years ago
Computers are able to think like human beings true or false?
Temka [501]

Answer:

False. Cuz they work the way they are programmed, which can be like a human being, but is not exactly it. They are built this way so they work as what the user thinks. (e.g. being sure to delete a file/recommending what the user might like)

make me brainliestt :))

7 0
3 years ago
Who wanna do a rp pick ur own character but dont answer if you dont know what were doing i will put brainliest if someone gives
USPshnik [31]

my name is bug i have short hair and im 14

Explanation:

7 0
3 years ago
Other questions:
  • While a hard drive is running, even a slight bump against the computer may cause the
    9·2 answers
  • Write the java statement to creat an object mp4 class digital​
    8·1 answer
  • In programming, what is a string?
    8·2 answers
  • Which access modifier is not allowed in a struct? Private Public Protected Internal All of the Above None of the Above A block {
    11·1 answer
  • What will you see on the next line?
    6·2 answers
  • What are the 6 major forms that Energy can be grouped into?
    10·1 answer
  • Project: Baseline, Benchmark, Objective, and Goal
    14·2 answers
  • Mary wants to design an algorithm that will calculate the average for three (3) numbers. Please select the most appropriate data
    5·1 answer
  • How do i code........​
    6·2 answers
  • What is the function of ROM?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!