Answer:
// Program is written in Coral Programming Language
// Comments are used for explanatory purpose
// Declare and input n; n stands for the number of input data
integer n
n = Get next input
// Declare and initialise two Variables to 0;
// The first Variable Sum, is used for addition and the second, Max is used for the max
integer sum
integer max
Sum = 0
Max = 0
// Declare and intialise Variable count to hold the number of positive input data
integer count
count = 0
// Declare array. The array is used to hold all input data
integer array(n) Arr
// Declare iterating variable I
integer i
//Use the following iterative statement to input array data
for i = 0; i < Arr.size; i = i + 1
Arr[I] = Get next input
if Arr[i] >= 0
Sum = Sum + Arr[i]
count = count + 1
if Arr[i] >= Max
Max = Arr[I]
// Declare Variable average
float average
//Calculate and print average
average = Sum/count
Put average to output
Put Max to output
Answer:
def power(base, expo):
if expo == 0:
return 1
else:
return base * power(base, expo-1)
Explanation:
*The code is in Python.
Create a method called power that takes base and expo as parameters
Check if the expo is equal to 0. If it is return 1 (This is our base case for the method, where it stops. This way our method will call itself "expo" times). If expo is not 0, return base * power(base, expo-1). (Call the method itself, decrease the expo by 1 in each call and multiply the base)
Answer:
Although this word was made up in order to be a contender for the longest word in English, it can be broken down into smaller chunks in order to understand it.
Anti- means that you are against something; monopoly means the exclusive control over something; geographic is related to geography; and the remaining part has to do with nationalism.
So this word means something like 'a nationalistic feeling of being against geographic monopoly,' but you can see that it doesn't have much sense.
(answer copied from Kalahira just to save time)
Answer:
C) speech recognition software.
Explanation:
Software that translates the sound of human voice into text is called a speech recognition software.
In Computer science, a speech recognition software is a voice technology application or program which enables the conversion of human voice such as spoken language to computer commands such as text through the use of speech recognition algorithms.
Some examples of speech recognition software are HTK, Kaldi, Voice navigator, Julius etc.
Answer:
a. a syntax error
Explanation:
When the same variable name is repeated in the parameter set and the method body, it will result in a syntax error. This is because the variable in the parameter has a local scope within the method body. Now if we declare another variable with the same name in the method body, it will result in redefinition of the variable and violate the uniqueness principle of variable names in the method code. This will give rise to syntax error.