Answer:
names = ['Peter', 'Bruce', 'Steve', 'Tony', 'Natasha', 'Clint', 'Wanda', 'Hope', 'Danny', 'Carol']
numbers = [100, 50, 10, 1, 2, 7, 11, 17, 53, -8, -4, -9, -72, -64, -80]
for index, element in enumerate(names):
if index % 2 == 0:
print(element)
for num in numbers:
if num >= 0:
print(num, end = " ")
count = 0
for i in numbers:
count += i
avg = count/len(numbers)
print("sum = ", count)
print("average = ", avg)
for num in numbers:
if num % 2 != 0:
print(num, end = " ")
Explanation:
I'm stuck on the last two.. I have to do those too for an assignment.
Answer:
retupmoc
Explanation:
1.) Anwser will be retupmoc
because
public static String mysteryString(String s){
if(s.length() == 1){
return s;
}
else{
return s.substring(s.length() -1) + mysteryString(s.substring(0, s.length()-1));
}
}
In this program input is "computer" . So the function mysteryString(String s) it does
return s.substring(s.length() -1) + mysteryString(s.substring(0, s.length()-1));
so when it enters the first time ??s.substring(s.length() -1) and it will be give you 'r' then it calls the function recursively by reducing the string length by one . So next time it calls the mysteryString function with string "compute" and next time it calls return s.substring(s.length()-1)? + mysteryString(s.substring(0,s.length-1)) so this time it gives "e" and calls the function again recursively . It keeps on doing till it matched the base case.
so it returns "retupmoc".
Answer:
Explanation:
Click the Data option.
Click on Named Range. This will open the 'Named ranges' pane on the right.
Click on the 'Add a range' option.
Enter the name you want to give the column (“Sales” in this example)
Make sure the column range is correct. ...
Click on Done.
Answer:
The NIC is disabled in CMOS
Explanation:
CMOS refers to the Complementary Metal Oxide Semiconductor. It is a technology that is used to generated integrated circuits.
It can be found in various types like microprocessors, batteries, etc
While on the other hand the NIC refers to the network interface controller in which the component of the computer hardware has connected the computer to its network. It can be done via wired and wireless.
Since in the given situation, it is mentioned that Ellen is not able to access the internet through wireless NIC neither it is visible in network connections nor it is shown in device manager so first she assumes that is nic is disabled in CMOS
and the same is to be considered
What’s that? I never heard of it.