Answer:
Else-If statements
Explanation:
Personally, I prefer using Else-If statements for conditional statements since you can start with and If statement and add to it if necessary. Aside from this, Else-If statements also allow you to add more than one condition to be met by using tags such as and or and not. Switch statements are better in scenarios where you have a set of possible inputs or results and need a specific event to happen for each input/result, but this is not as common of a scenario so Else-If is usually my go-to conditional statement.
java Elements in a range Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a comma, even the last one. The output ends with a newline. Ex: If the input is: 5 25 51 0 200 33 0 50 then the output is: 25,0,33, (the bounds are 0-50, so 51 and 200 are out of range and thus not output). To achieve the above, first read the list of integers into an array.
Answer:
The program in Java is:
import java.util.Scanner;
public class MyClass {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int n;
n = input.nextInt();
int [] mylist = new int[n+1];
mylist[0] = n;
System.out.print("List elements: ");
for(int i = 1;i<n+1;i++){
mylist[i] = input.nextInt();
}
int min,max;
System.out.print("Min & Max: ");
min = input.nextInt();
max = input.nextInt();
for(int i=1; i < mylist.length; i++){
if(mylist[i]>=min && mylist[i]<=max){
System.out.print(mylist[i]+" ");
}
}
}
}
Explanation:
This line declares length of list
int n;
This line gets length of list
n = input.nextInt();
This line declares the list/array
int [] mylist = new int[n+1];
This line initializes the element at index 0 to the length of the list
mylist[0] = n;
This prompts user for elements of the list/array
System.out.print("List elements: ");
The following iteration gets list elements
for(int i = 1;i<n+1;i++){
mylist[i] = input.nextInt();
}
This declares the lower and upper bound (min, max)
int min,max;
This line prompts user for elements of the list/array
System.out.print("Min & Max: ");
This next two lines get the bound of the list/array
min = input.nextInt();
max = input.nextInt();
The following iteration prints the elements in the range
for(int i=1; i < mylist.length; i++){
if(mylist[i]>=min && mylist[i]<=max){
System.out.print(mylist[i]+" ");
}
}
list the difference between sdram and dram
Answer:
i need this for a challenge
Explanation:
What is the BCC feature used for?
to format email message text in a custom font
to format email message text in a blind font
to send a courtesy copy of an email to someone who does not need to take action
to send an email to someone without revealing that person’s email address to others on the distribution list
Answer:
to send an email to someone without revealing that person’s email address to others on the distribution list
Explanation:
BAM
To send an email to someone without revealing that person’s email address to others on the distribution list.
What is BCC?
"Blind carbon copy" is referred to as BCC. BCC is a similar method to CC for forwarding copies of an email to additional recipients. When CC is used, a list of recipients is shown; when BCC is used, a list of recipients is not visible.
Because the other receivers won't be able to see that the email has been forwarded to another person, it is known as a blind carbon copy.
Carbon copy is referred to as a "CC" in email communication. When there was no internet or email, you had to sandwich a piece of carbon paper between the paper you were writing on and the paper you wanted to use as your copy in order to make a copy of the letter you were writing.
Therefore, To send an email to someone without revealing that person’s email address to others on the distribution list.
To learn more about BCC, refer to the link:
https://brainly.com/question/29398332
#SPJ6
If an insurance policy covers individual losses up to $10,000 and has a deductible of
$500, the insured will be paid how much in the event of a covered loss of $5,000?
Answer: $4500
Explanation:
The deductible is the amount that the insured that is, the policy holder will have to pay. In this case, there is a covered loss of $5000 and the insured has a deductible of $500.
Therefore, the amount that the insured will be paid will be the difference between $5000 and the deductible of $500. This will be:
= $5000 - $500
= $4500
rheumatoid arthritis is caused when
Answer:
caused by the immune system attacking healthy body tissue.
Explanation:
all though they are not sure what triggers it
Universal Container wants to understand all of the configuration changes that have been made over the last 6 months. Which tool should an Administrator use to get this information
Answer:
Set up audit trail
Explanation:
The administrator should set up an audit trail in order to get this information.
An audit trail would give him the record of all the configuration changes that have been made in a file or a database in the last 6 months.
Audit trails can be manual or electronic. It provides history and also documentation support. It can authenticate security and also help to mitigate challenges.