Answer:
Yes, the relation is a function
Domain = {-3,1,3,7}
Range = {7,3,1-1}
Explanation:
Given
{(-3,7),(1,3),(3,1),(7,-1)}
To determine if the relation is a function or not, we check if every output has only one corresponding input.
The output are (7,3,1-1) while the input are (-3,1,3,7)
-3 ----;> 7
1 -------> 3
3 -------> 1
7 -------> -1
It is a function since every output only has one corresponding input
To find the domain, we look at the set of input values
Domain = {-3,1,3,7}
To find the range, we look at the set of output values
Range = {7,3,1-1}
Answer:
<u> FlashCard.java</u>
- public class FlashCard {
- String Question;
- String Answer;
-
- public FlashCard(String q, String a){
- this.Question = q;
- this.Answer = a;
- }
-
- public String toString(){
- String output = "";
- output += "Question: " + this.Question + "\n";
- output += "Answer: " + this.Answer;
- return output;
- }
-
- public boolean equals(String response){
- if(this.Answer.equals(response)){
- return true;
- }
- else{
- return false;
- }
- }
- }
<u>Main.java</u>
- public class Main {
- public static void main(String[] args) {
- FlashCard card1 = new FlashCard("What is highest mountain?", "Everest");
- FlashCard card2 = new FlashCard("What is natural satelite of earth?", "Moon");
- FlashCard card3 = new FlashCard("Who is the first president of US?", "George Washington");
- FlashCard cards [] = {card1, card2, card3};
-
- for(int i=0; i < cards.length; i++){
- System.out.println(cards[i]);
- }
- }
- }
Explanation:
In FlashCard.java, we create a FlashCard class with two instance variable, Question and Answer (Line 2 - 3). There is a constructor that takes two input strings to initialize the Question and Answer instance variables (Line 5-8). There is also a toString method that will return the predefined output string of question answer (Line 10 - 15). And also another equals method that will take an input string and check against with the Answer using string equals method. If matched, return True (Line 17 -24).
In Main.java, create three FlashCard object (Line 3-5) and then put them into an array (Line 6). Use a for loop to print the object (Line 8-10). The sample output is as follows:
Question: What is highest mountain?
Answer: Everest
Question: What is natural satelite of earth?
Answer: Moon
Question: Who is the first president of US?
Answer: George Washington
Answer: C
Explanation:
Because ipv4 ip addresses will be 4 sets of numbers for a maximum of 255 per set ie. The highest ipv4 number is 255.255.255.255 and the answer C has 293 in it.
Answer:
An ACL is a list of permit or deny rules detailing what can or can't enter or leave the interface of a router. Every packet that attempts to enter or leave a router must be tested against each rule in the ACL until a match is found. If no match is found, then it will be denied.
Explanation:
PLEASE MARK ME AS BRAINLIEST