integer userInput
integer i
integer mid
integer array(20) number
userInput = 1
for i = 0; userInput >= 0; i = i + 1
if number[i] > -1
userInput = Get next input
number[i] = userInput
i = i - 1
mid = i / 2
if i > 9
Put "Too many inputs" to output
elseif i % 2 == 0
Put number[mid - 1] to output
else
Put number[mid] to output
Answer:
The correct code to this question can be de4fined as follows:
double power;
power = Math.pow(base, exp);
Explanation:
In the given question the choices were missing, that's why we defined the correct code only.
- In the given code a two double variable "base and exp" is declared, that input the value from the user-side, and store its value into there respective variables.
- In the next step, "power", that is a double variable is declared, which uses the "Math.pow" function that calculates given values power and prints its value.
please find the attachment of the full code.
3 Examples of mainframe computers
z900
System z9
System z10
Answer:
See explaination for the code
Explanation:
def wordsOfFrequency(words, freq):
d = {}
res = []
for i in range(len(words)):
if(words[i].lower() in d):
d[words[i].lower()] = d[words[i].lower()] + 1
else:
d[words[i].lower()] = 1
for word in words:
if d[word.lower()]==freq:
res.append(word)
return res
Note:
First a dictionary is created to keep the count of the lowercase form of each word.
Then, using another for loop, each word count is matched with the freq, if it matches, the word is appended to the result list res.
Finally the res list is appended.
The problem that you think could be addressed by using video games is financial management skills.
<h3>What problem does gaming handles?</h3>
A lot of Scientific research have seen that video games improve people's creativity and also their skill in terms of problem-solving skills.
Note that it can also help to improve financial management skills and also make people to have stable jobs and good source of income.
Learn more about video games from
brainly.com/question/8870121