<span>The Java code below will ask for two integers and display the sum. If a non-integer is submitted the code will ask again. The break is used to exit the while true loop indicating that no-errors had occurred and two numbers were added.
System.out.print("Please insert two integers and this will display the sum.");
int numOne;
int numTwo;
while (True) {
try{
System.out.print("Integer Number One? ");
numOne = input.nextInt();
System.out.print("Integer Number Two? ");
numTwo = input.nextInt();
System.out.print("The Sum Is: " + (numOne + numTwo));
break;
}
catch (InputMismatchException e) {
System.out.print("please enter an integer .");
}
}</span>
Answer:
<u>Part A:</u> The population are the American adult citizens, excluding the ones from Alaska and Hawaii. The population is the people which the sample is trying to represent, as a hole.
The sample is a portion of this population, and in this case is represented by a randomly selected amount of people whose response to the interview has been selected.
<u>Part B:</u> The sample here has been selected in two steps. The <u>first</u> step is the one that we must pay attention to: the numbered list of one million responses from around the US (excluding Alaska and Hawaii). Because these responses were obtained by an online survey, the sample looks like a convenience sampling, as it depends on the availability and willingness from participants to take part of the study (is not compulsory for everyone, so not everyone is going to response, then there are people that is not going to be represented by). The <u>second</u> step is the random selection of a part of the previous responses. This last part will ensure that, the individuals that took part of the group that was interviewed, are well represented in the results.
<u>Part C:</u> As it was mentioned, there is a selection bias, because the information from the sample comes from a specific group of people that has certain features that may not represent all American adults citizens. For <u>example, the opinion of those people who do not use internet</u>, will not be considered (and they may be a large number of persons). This situations weaken the conclusions obtained in the study, as they are not representative of the hole population.
This is annoying
the perimiter is 34 units
the width is 6.5 units
ok.
perimiter=2(Length+Width)
P=2(L+W)
solve for L
distribute
P=2L+2W
minus 2W
P-2W=2L
divide by 2

given that P=34 units and W=6.5 units

the equation would be

or
I believe the correct answer is D - 25 centimeters based on my calculations
Let x = 63.63...(by repeating i assume you mean the 63 is repeated as 63.636363...)
therefore 100x = 6363.63..
100x-x =6300 (the recurring bit has been cancelled out which is what you should always aim to do)
99x=6300
x = 6300/99
cancel down
x = 700/11