Answer:
See Explaination
Explanation:
package testscores;
import java.util.ArrayList;
import java.util.List;
public class TestScores {
public List<Integer> scorearray=new ArrayList<>();
public TestScores(List<Integer> scores) throws InvalidTestScore{
this.scorearray=scores;
for(int i=0;i<scorearray.size();i++){
if(scorearray.get(i)>100 || scorearray.get(i)<0){
throw new InvalidTestScore(this.scorearray.get(i));
}
}
}
public double average(){
int tot=0;
for(int i=0;i<this.scorearray.size();i++){
tot=tot+this.scorearray.get(i);
}
return tot*(1.0)/(this.scorearray.size());
}
class InvalidTestScore extends Exception
{
private double amount;
public InvalidTestScore(int Score)
{
System.out.println("Invalid Score "+Score);
}
}
}
Answer:
<u>IRET(Interrupt return) </u>
This instruction is used in x-86 intel cpu architecture.
The IRET instruction provides for a long return to the program or procedure interrupted. IRET and IRETD these two instructions have the same meaning.
Each interrupt procedure has an IRET instruction stating that the routine ends. The execution of the instruction pops up the IP address from the stack and continues to run the primary program.
Answer:
lurch means make an abrupt, unsteady, uncontrolled movement or series of movements; stagger.
<span><span />The Microprocessor is the key invention that
enabled computers to go into every home and office. Microprocessor is a
computer processor that enables the computer to run. It is also called as
central processing unit. It is also a multipurpose and programmable device that
accepts inputted data and process the data to provide an output. Microprocessor
started from 8-bit design to 16bit, 32 bit, 64 bit and now it is produce a
multi core design in the market. Faster and stronger design that can run
heavier applications.</span>