Answer:
Deque: You need to keep a record of the ages of the last 50 customers visit a restaurant. As new customers come in you delete the age that has been in the list the longest.
Tuple: You need to store the GPS coordinates of the hospitals in a state in order to find the nearest hospital for ambulance helicopters.
List: You write a loop to save anywhere from 10 to 100 values from a user. You will pass the collection to a function to find the average.
Explanation: Just got the results back no thanks to the guy above
Answer:
public class SwitchCase {
public static void main(String[] args) {
int num = 0;
int a = 10, b = 20, c = 20, d = 30, x = 40;
switch (num){
case 102: a += 1;
case 103: a += 1;
case 104: a += 1;
case 105: a += 1;
break;
case 208: b += 1; x = 8;
break;
case 209: c = c * 3;
case 210: c = c * 3;
break;
default: d += 1004;
}
}
}
Explanation:
- Given above is the equivalent code using Switch case in Java
- The switch case test multiple levels of conditions and can easily replace the uses of several if....elseif.....else statements.
- When using a switch, each condition is treated as a separate case followed by a full colon and the the statement to execute if the case is true.
- The default statement handles the final else when all the other coditions are false
Answer:
b)void aNonclassFunction (Banana co);
Explanation:
In the function definition you have to pass the tell the function which type of argument it is taking.In our case we are taking a variable co of Banana type passing it to the function named aNonclassFunction having no return type.
So the definition will be like this.
void aNonclassFunction (Banana co);
C - An Intranet will give access to all employees within the company, whether they work from home or at the office.
To set up scenarios, you need to first use Goal seek to set up a list, then data table to set up the reference cell. Last you need to use VLOOKUP to set up the cells that display the output results from the scenario.
<h3>What is a Goal Seek in Excel?</h3>
Microsoft Excel is known to have a goal seeking tool that is said to be built-in and it is one that gives room for the user to know the desired input value for any kind of formula if the output value is said to be already known.
Hence, To set up scenarios, you need to first use Goal seek to set up a list, then data table to set up the reference cell. Last you need to use VLOOKUP to set up the cells that display the output results from the scenario.
See full question below
To set up scenarios, you need to first use to set up a list, then to set up the reference cell. Last you need to use to set up the cells that display the output results from the scenario. CHOOSE; VLOOKUP; data table Goal seek; data table; VLOOKUP Data validation; VLOOKUP; CHOOSE Data table; VLOOKUP;
Learn more about VLOOKUP from
brainly.com/question/14042837
#SPJ1