Answer:
import random
number1 = random.randrange(0, 1000)
number2 = random.randrange(0, 1000)
answer = int(input("Enter a number: "))
if answer == number1 + number2:
print("Your answer is correct")
else:
print("Your answer is not correct")
Explanation:
The code is in Python
Create two integer numbers using random
Ask the user for an input
Check if answer is equal to number1 + number2. If they are equal, print "answer is correct". Otherwise, print "answer is not correct".
Co-pay: Term often used in health care, insurance covers part of the cost and you pay the rest. Seeing in this situation you are paying for the insurance itself, the term is not correct.
Deductible: An insurance term for when you have to pay a certain amount before insurance will cover the rest.
Premium: A fee payed by the insured (Jan) to be covered. This is my best guess for your answer.
Claim: A claim is when Jan would request the insurance company to reimburse her after a car accident (or her tires got slashed, etc.)
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);
}
}
}
The first two make the most sense.
I hope this helps!